Re: comparing index fields within a query

2012-01-23 Thread Trejkaz
On Mon, Jan 23, 2012 at 11:31 PM, Jamie wrote: > Ian > > Thanks. I'll have to read up about it. I have a lot of comparisons to make, > so cannot precompute the values. How many is a lot? If it were 100 or so I would still be tempted to do all 4,950 comparisons and find some sensible way to store

Re: Using dismax features in Lucene

2012-01-23 Thread Paul Taylor
On 10/01/2012 18:16, Chris Hostetter wrote: : The book said that dismax query was similar but different to : : DisjunctionMaxQuery the dismax *parser* in Solr is relatively simple, the majority of the code in it relates to parsing config options, reporting debugging, etc... if you wanted to do

Re: restrict fuzzy search to longer words

2012-01-23 Thread Ian Lea
Not sure what you mean by integration. The suggestion is all about queries and query parsing, so query time. -- Ian. On Mon, Jan 23, 2012 at 3:44 PM, Lance wrote: > Hi Ian, > > Thanks for your help. I was just checking to see if my solr/lucene developer > understands this. He's in India. > H

Re: restrict fuzzy search to longer words

2012-01-23 Thread Lance
Hi Ian, Thanks for your help. I was just checking to see if my solr/lucene developer understands this. He's in India. He says this takes place at the time of integration. Is that correct? - Lance On Jan 20, 2012, at 3:40 PM, Ian Lea wrote: No idea about solr,

Re: comparing index fields within a query

2012-01-23 Thread Ian Lea
> ... > Don't you think this would be a nice feature for Lucene? Can't say I've ever missed it, and haven't noticed others asking for it. You need to remember that lucene is not a database. > The Lucene query syntax has not changed much over the past few years. Are > there any plans to broaden i

Re: comparing index fields within a query

2012-01-23 Thread Jamie
Ian Thanks. I'll have to read up about it. I have a lot of comparisons to make, so cannot precompute the values. Don't you think this would be a nice feature for Lucene? The Lucene query syntax has not changed much over the past few years. Are there any plans to broaden its capabilities? J

Re: comparing index fields within a query

2012-01-23 Thread Ian Lea
I guess you could do it in a custom Collector. They get passed readers and docids so you could do the lookups and comparison. There will be performance implications that you may be able to minimise via FieldCache. Storing the result in the index sounds much more sensible. -- Ian. On Mon, Jan

comparing index fields within a query

2012-01-23 Thread Jamie
Hi Everyone I have a problem where I need to compare two indexed fields as part of a query. For instance: modified_date[1970 to 2012] AND NOT deleted_date>modified_date how would one implement this using Lucene? Bear in mind, I need a dynamic way of accomplishing this comparison. In my case