lucene.net

How to set up a query to return phrases and parts of phrases in lucene.net?

I've got lucene.net running and I am having a little trouble with implementing a good approach to a query requirement that I have. I'd like to be able to create a query that would enable the query to find hits on: 1) "Sodium Bicarbonate" - exact phrase query. 2) "Sodi% Bicarb%" - partial phrase...

IFullTextQuery - exception if there are too may objects

This code works fine: Query query = parser.Parse(expression); IFullTextSession session = Search.CreateFullTextSession(this.Session); IFullTextQuery fullTextQuery = session.CreateFullTextQuery(query, new[] { typeof(MappedSequence) }); var l1 = fullTextQuery.List(); as long as the query does not...

Lucene - custom analyzer/tokenizer to index JSON key pair values

I'm aiming to store and index JSON key pair values. Ideally I would store them in a constant fieldname. (For simplicity sake, "GRADES") An example of the incoming JSON object: "Data": [{ "Key": "DP01", "Value": "Excellent" }, { "Key": "DP02", "Value": "Average" }, { "Key": "DP03", "Value": "Negative...

SitecoreSearchContrib - How to merge & sort from multiple indexes

I'm currently setting up a search for a Sitecore 6.6 web site using SitecoreSearchContrib. I've got two indexes. One index looking at my web site content: /sitecore/content/home and another index looking in a documents folder in the media library (which contains PDF etc). /sitecore/media library...