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
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
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
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
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
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
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
: > 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
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