lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Hall <mh...@informatics.jax.org>
Subject Re: lucene wildcard query with stop character
Date Thu, 12 Jun 2008 17:47:44 GMT
I assume you want all of your queries to function in this way?

If so, you could just translate the * character into a ? at search time, 
which should give you the functionality you are asking for.

Unless I'm missing something.

Matt

Cam Bazz wrote:
> Hello,
>
> Imagine I have the following documents having keys
>
> A
> A>B
> A>B>C
> A>B>D
> A>B>C>D
>
> now Imagine a query with keyword analyzer and a wildcard: A>B>*
>
> which will bring me A>B>C , A>B>D and A>B>C>D
>
> but I just want to get A>B>C and A>B>D
>
> so can I make a query like A>B>* but does not have the > character after
> A>B>
>
> Best Regards,
> -C.B.
>
>   



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


Mime
View raw message