Re: Use of PrefixQuery to create multi-word queries

2011-01-05 Thread Cameron Leach
L - I faced the exact same problem you're having. I ended up writing a custom Analyzer to tokenize the terms the way I wanted. If memory serves me correctly, the WhitespaceAnalyzer will do this: "the brown dog" -> the brown dog I think what you want is for something like this: "the brown dog" -

Re: Use of PrefixQuery to create multi-word queries

2011-01-05 Thread L Duperval
Philip Puffinburger tlcdelivers.com> writes: > We only do the PrefixQuery which is against the keyword field ("brown dog" > is a single term as is "the brown dog"). We don't have a BooleanQuery > like you do, but I don't see why it wouldn't work. > Ahh. OK, so you probably aren't using a whi

CachingWrapperFilter vs FieldCacheTermsFilter

2011-01-05 Thread entdeveloper
Could someone provide some general guidelines on what scenario is best to use either the CachingWrapperFilter vs the FieldCacheTermsFilter? I understand there are certain restrictions, like the FieldCacheTermsFilter requires there to be a single-valued field for all documents in the index. But pe

Re: Use of PrefixQuery to create multi-word queries

2011-01-05 Thread Philip Puffinburger
On Jan 5, 2011, at 1:00 PM, L Duperval wrote: > Philip, > > I also have two fields, one for indexing and another for display. How does the > above affect searching? If you type "brown do" will it find the title > correctly > or do you have to type "brown dog" in order to get a match? Would "bro

Re: Use of PrefixQuery to create multi-word queries

2011-01-05 Thread L Duperval
Ahmet, Ahmet Arslan yahoo.com> writes: > So order of search terms are important to you. Since you are constructing your queries programmatically, > you can use SpanQuery family. > Yes, order is important. > If you substitute PrefixQuery with SpanRegexQuery, and TermQuery with SpanTermQuery. An

Re: Use of PrefixQuery to create multi-word queries

2011-01-05 Thread L Duperval
Philip, Philip Puffinburger tlcdelivers.com> writes: > So if we had a Book like with a title like 'The Brown Dog', we would end up with fields in the document like: > > Used for the normal full text searching > > title : the brown dog > > Used for the prefix searching > > titlekeyword : the

Re: Search Score percentage, Should not be relative to the highest score

2011-01-05 Thread Amr ElAdawy
2.9.4 -- View this message in context: http://lucene.472066.n3.nabble.com/Search-Score-percentage-Should-not-be-relative-to-the-highest-score-tp2183420p2199732.html Sent from the Lucene - Java Users mailing list archive at Nabble.com.

Re: Search Score percentage, Should not be relative to the highest score

2011-01-05 Thread Ahmet Arslan
> Did not work, > > I am using my own Similarity and the coord method is not > called, because the > disableCoord variable is set to true from FuzzyQuery > > > public Similarity getSimilarity(Searcher searcher) { >     Similarity result = > super.getSimilarity(searcher); >     if (disableCoord

Re: Use of PrefixQuery to create multi-word queries

2011-01-05 Thread Philip Puffinburger
We do something similar with a PrefixQuery. But the way we do it is to use a Keyword field to use the PrefixQuery against. So if we had a Book like with a title like 'The Brown Dog', we would end up with fields in the document like: Used for the normal full text searching title : the brown

Re: Use of PrefixQuery to create multi-word queries

2011-01-05 Thread Ahmet Arslan
> I am trying to implement a "progressive search" with > Lucene. What I mean is that > something like what Google does: you type a few letters and > google searches for > matches as you type. The more letters you enter, the more > precise your search > becomes. > > I decided to use a prefix query

Use of PrefixQuery to create multi-word queries

2011-01-05 Thread L Duperval
Hi, I am trying to implement a "progressive search" with Lucene. What I mean is that something like what Google does: you type a few letters and google searches for matches as you type. The more letters you enter, the more precise your search becomes. I decided to use a prefix query because other

WARNING: re-index all Lucene trunk indices

2011-01-05 Thread Michael McCandless
If you are using Lucene's trunk (to be 4.0) builds, read on... I just committed LUCENE-2843, which is a hard break on the index file format. If you are living on Lucene's trunk then you have to remove any previously created indices and re-index, after updating. The change cuts over to a more RAM