Re: Problem using wildcardsearch in phrase search

2007-05-13 Thread Paul Taylor
Chris Hostetter wrote: : > You can't use a wildcard within double quotes. The Lucene syntax : > grammar does not look for such things. : This is the bit I don't get (I have got round the problem), why can't : you use wildcards within double quotes, this isnt mentioned anywhere in : http://lucene

Re: Problem using wildcardsearch in phrase search

2007-05-13 Thread Chris Hostetter
: > You can't use a wildcard within double quotes. The Lucene syntax : > grammar does not look for such things. : This is the bit I don't get (I have got round the problem), why can't : you use wildcards within double quotes, this isnt mentioned anywhere in : http://lucene.apache.org/java/docs/qu

Re: Problem using wildcardsearch in phrase search

2007-05-13 Thread Mark Miller
I do not know enough about PhraseQuery to say how hard it would be to add support for wildcards, but I am sure there is some method of doing it -- it has just not been done. From what I can tell it would be easier to stop using PhraseQuery and use SpanQuery's if you wanted to do this. Maybe som

Re: Problem using wildcardsearch in phrase search

2007-05-13 Thread Paul Taylor
Mark Miller wrote: You cannot use wildcards in quotes simply because the QueryParser syntax does not look for such things...at the top level it is either looking for a Wildcard token OR a Quoted token. There is good reason for this: a phrase query does not support wildcards. OK thanks for all t

Re: Problem using wildcardsearch in phrase search

2007-05-13 Thread Mark Miller
You cannot use wildcards in quotes simply because the QueryParser syntax does not look for such things...at the top level it is either looking for a Wildcard token OR a Quoted token. There is good reason for this: a phrase query does not support wildcards. The hack that I suggested (looking for

Re: Problem using wildcardsearch in phrase search

2007-05-13 Thread Paul Taylor
Mark Miller wrote: You can't use a wildcard within double quotes. The Lucene syntax grammar does not look for such things. This is the bit I don't get (I have got round the problem), why can't you use wildcards within double quotes, this isnt mentioned anywhere in http://lucene.apache.org/java

Re: Problem using wildcardsearch in phrase search

2007-05-13 Thread Mark Miller
I think the KeywordAnlyser bit is maybe a red herring, the problem seems to be that you cant use * within double quotes, I made some changes to my data and index to remove the space character You can't use a wildcard within double quotes. The Lucene syntax grammar does not look for such thin

RE: Problem using wildcardsearch in phrase search

2007-05-13 Thread Max Metral
Instead of using QueryParser.Parse, what if you make a WildcardQuery directly? I had similar troubles getting prefix queries (for ajax) working properly, never did solve it. -Original Message- From: Paul Taylor [mailto:[EMAIL PROTECTED] Sent: Sunday, May 13, 2007 5:02 AM To: java-user@lu

Re: Problem using wildcardsearch in phrase search

2007-05-13 Thread Paul Taylor
I think the KeywordAnlyser bit is maybe a red herring, the problem seems to be that you cant use * within double quotes, I made some changes to my data and index to remove the space character If I fed 54:puid* to my code it generates a Prefix Query and works as required Search Query Is54:puid