romseysoftware.co.uk
July | 2012 | Romsey Software
http://www.romseysoftware.co.uk/2012/07
Open source search and web development. Skip to primary content. Skip to secondary content. Monthly Archives: July 2012. Writing a new Lucene Codec. July 4, 2012. The just-released Lucene 4.0.0-alpha allows you to customize Lucene’s index format in any way you want, by creating a new Codec. I recently implemented one of these that stores postings data in Redis, as part of a proof-of-concept project investigating updateable fields (see this blog post. A codec implementation tells Lucene how to store posti...
romseysoftware.co.uk
September | 2012 | Romsey Software
http://www.romseysoftware.co.uk/2012/09
Open source search and web development. Skip to primary content. Skip to secondary content. Monthly Archives: September 2012. Proximity boosting in elasticsearch. September 27, 2012. Elasticsearch (as of version 0.19.8) doesn’t have proximity boosting of this kind built-in, but it is possible to implement it by modifying your queries. Here’s how:. Take your multi-term query, and split it into shingles. Add the shingles as phrase queries in ‘should’ clauses. Our final query looks something like this:.
romseysoftware.co.uk
May | 2012 | Romsey Software
http://www.romseysoftware.co.uk/2012/05
Open source search and web development. Skip to primary content. Skip to secondary content. Monthly Archives: May 2012. Debugging a running Solr server. May 23, 2012. I’ve found this useful when I’m developing plugins, or just trying to fathom how some weird corner of Solr works. You can remotely debug a Solr instance running under Jetty by adding the following to the Jetty parameters:. Xdebug -Xrunjdwp:transport=dt socket,server=y,suspend=n,address=5005. Proximity boosting in elasticsearch.
romseysoftware.co.uk
NOT WITHIN queries in Lucene | Romsey Software
http://www.romseysoftware.co.uk/2012/02/20/not-within-queries-lucene
Open source search and web development. Skip to primary content. Skip to secondary content. NOT WITHIN queries in Lucene. February 20, 2012. SpanQueries search for Spans – a start term, an end term, and an edit distance. So to search for. Within two positions of. You’d create a SpanNearQuery, passing in the terms “fish” and “chips” and an edit distance of 2. You can also search for terms that are not. Let’s say we have the following document:. Fish and chips is nicer than fish and jam. Enter the SpanNotQ...
solrhq.com
SolrHQ | SolrHQ Search for WordPress
http://www.solrhq.com/solrhq-for-cms/wordpress
SolrHQ make using Solr search easy. Getting Started with Solr Search. SolrHQ Search for WordPress. Plugin that replaces the default WordPress. Search with a Solr based search. This plugin uses either an account on SolrHQ. Or a Solr instance running on your own servers. Index pages and posts. Enable faceting on fields such as tags, categories, author, and page type. Treat the category facet as a taxonomy. Add special template tags so you can create your own custom result pages to match your theme. Note th...
romseysoftware.co.uk
romseygeek | Romsey Software
http://www.romseysoftware.co.uk/author/romseygeek
Open source search and web development. Skip to primary content. Skip to secondary content. Proximity boosting in elasticsearch. September 27, 2012. When you search for the term ‘annual leave’, you’re more interested, generally speaking, in documents that have those two terms next to each other than in documents that contain the two terms seperated by a few pages. You want the proximity of the several terms to be taken into account when scoring documents for relevancy. Bool': { 'must' : { 'query string' ...
romseysoftware.co.uk
March | 2012 | Romsey Software
http://www.romseysoftware.co.uk/2012/03
Open source search and web development. Skip to primary content. Skip to secondary content. Monthly Archives: March 2012. March 12, 2012. Gradle is lovely, it really is. I love not having to write reams of XML to build stuff. I love being able to define functions in my build system, and not copy and paste chunks of logic everywhere. It has its irritations, though. One of which is that it doesn’t seem to detect character encoding properly. CompileJava, compileTestJava ]*.options*.encoding = 'UTF-8'. Which...
romseysoftware.co.uk
June | 2012 | Romsey Software
http://www.romseysoftware.co.uk/2012/06
Open source search and web development. Skip to primary content. Skip to secondary content. Monthly Archives: June 2012. Nicer multiselect boxes with Chosen. June 7, 2012. One of the classic nightmare user requests is for a dropdown list containing several thousand entries – it’s almost impossible to make this useable without some serious hacking. Which basically does it all for me. It works as either a jQuery or Prototype plugin, and is incredibly simple to use:. Proximity boosting in elasticsearch.
romseysoftware.co.uk
February | 2012 | Romsey Software
http://www.romseysoftware.co.uk/2012/02
Open source search and web development. Skip to primary content. Skip to secondary content. Monthly Archives: February 2012. NOT WITHIN queries in Lucene. February 20, 2012. SpanQueries search for Spans – a start term, an end term, and an edit distance. So to search for. Within two positions of. You’d create a SpanNearQuery, passing in the terms “fish” and “chips” and an edit distance of 2. You can also search for terms that are not. Let’s say we have the following document:. Fish" NOT WITHIN/2 "chips".