lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: phrase query not working in boolean clause
Date Wed, 09 Jun 2004 17:41:55 GMT
On Jun 9, 2004, at 12:25 PM, Michael Duval wrote:
> When doing an exact phrase query on the title the expected results are 
> returned:
>    +(title:"Mass Asymmetry")
>       after tokenizing/filtering:  +title:"mass asymmetri"
>    returns 20 Hits
>    example hit: "Mass asymmetry, equation of state, and nuclear 
> multifragmentation"
> When attempting to confine the results to a particular journal the 
> query used is:
>    +(journal:L) +(title:"Mass Asymmetry")
>       after t/f :  +journal:L +title:"mass asymmetri"
>    returns 315 Hits!!
>    example hit 1:  Towards dynamical mass calculations
>    example hit 2:  Up down-asymmetric gravitational fields of spinning 
> masses
> It would seem that the search engine is treating
>    +title:"mass asymmetri"  as +title:mass asymmetri
> However, this behavior is only apparent on composite queries as shown 
> previously.
> For a sanity check I built the query using both the standard query 
> parser and
> the lucene search api (TermQuery, PhraseQuery, BooleanQuery).   The 
> results
> were the same both ways.
> Is this a well known limitation of the lucene search engine?  Is there 
> a different
> means of obtaining the desired results?

Could you work up a JUnit test case example indexing a couple of 
documents like this into a RAMDirectory and a testXXX method that shows 
the failure?

I cannot really make sense of what you have going on with the textual 
queries and obviously some stemming going on to.  Show us the code. :)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message