lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Strange search results with wildcard - Bug?
Date Thu, 23 Sep 2004 15:36:43 GMT
On Sep 23, 2004, at 11:00 AM, Ulrich Mayring wrote:
> Erik Hatcher wrote:
>> Look at AnalysisDemo referred to here:
>>     http://wiki.apache.org/jakarta-lucene/AnalysisParalysis
>> Keep in mind that phrase queries do not support wildcards - they are 
>> analyzed and any wildcard characters are likely stripped and cause 
>> tokens to split.
>
> Ok, I did all that and identified a basic case:
>
> If the user searches for "007001 handle", the MultiFieldQueryParser, 
> which searches in the fields "title" and "contents", changes that 
> query to:
>
> (title:007001 +title:handl) (contents:007001 +contents:handl)
>
> So, actually it has nothing to do with the wildcard, the problem comes 
> from the + modifier - where does it originate? Obviously, this way I 
> can never find a document without the term "handle", but with the 
> number 007001.

How are you using MultiFieldQueryParser?  It's surely coming from that.

	Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message