lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Miller <>
Subject Re: Problem using wildcardsearch in phrase search
Date Sat, 12 May 2007 23:24:05 GMT
Well I am confused so I suppose I'll let someone else give it a shot.

Just in case though...if you are using the query: fieldname:"MusicIP Puid*"
Then you should need to leave out the quotes...quotes create a 
phrasequery, and a phrasequery will not match what is in your index.
This may end up being the problem though...without the quotes, the space 
will be treated as the default operator -- you may need to write your 
own super simple parser that suits your needs don't want 
the space to act as a default operator but as a normal token character.

Then again, I am not sure if you are using those quotes or not...

- Mark

Paul Taylor wrote:
> Mark Miller wrote:
>> Didn't you say you where using a phrasequery? If you are, things will 
>> not work as expected. You need to leave the quotes out of your search 
>> as a phrasequery will not match what you are putting in your index. 
>> If you are not using a phrasequery then things should work as you 
>> would expect. Can you provide any other info?
>> - Mark
> No, I meant I was parsing a search String of the form 
> fieldname:"MusicIP Puid*" (because I was using quotes and it is 
> surrounded by double quotes I called it a phrase query), then I use 
> the QueryParser().parse() to convert this search string into a Query 
> (as shown in the code I posted earlier)
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message