I'm using it. But the fact is that when my analyzer returns synonyms to the BooleanQuery I get not hit.
But, when the analyzer returns no synonyms I get a hit. If I enter: "window". I get a TermQuery: contents:window and I get a hit. But If I enter: "wind". I get a BooleanQuery: contents:wind contents:window and no hit... -----Original Message----- From: Grant Ingersoll [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 6 de dezembro de 2006 11:33 To: java-user@lucene.apache.org Subject: Re: Customized Analyzer I often find that using Luke (google "luke lucene") gives me the info I need to figure out why I am not getting hits. So, if you haven't tried using it yet, I would suggest it. On Dec 6, 2006, at 7:38 AM, Alice wrote: > Going through the javadocs, thats wath I found out: > > About the positionIncrement of Token.class: > " Set it (positionIncrement) to zero to put multiple terms in the same > position. > This is useful if, e.g., a word has multiple stems. Searches for > phrases > including either stem will match. In this case, all but the first > stem's > increment should be set to zero: the increment of the first instance > should be one. Repeating a token with an increment of zero can > also be > used to boost the scores of matches on that token." > > So thats what I did... > And now it is returning a BooleanQuery as I expected: > contents:wind contents:window > > But still no hits... > > Any clue? > > > -----Original Message----- > From: Chris Hostetter [mailto:[EMAIL PROTECTED] > Sent: terça-feira, 5 de dezembro de 2006 20:54 > To: Lucene Users > Subject: RE: Customized Analyzer > > > As stated before, a *self contained* test case would help people > diagnose > your problem ... just cutting and pasting a few snippets of your > code is > not enough for people to reproduce your problem. > > > : And the return is: contents:"(wind window)" > > a MultiPhraseQuery that looks like that should be functionally > equivilent > to a BooleanQuery .. as a matter of fact, it will rewrite to a > BooleanQuery ... does a straight search on either "wind" or "window" > return any results for you? > > > > -Hoss > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ------------------------------------------------------ Grant Ingersoll http://www.grantingersoll.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]