You could do it with a TermQuery but I'm not quite sure if that's the answer
you're looking for.

Cheers
Rob

On Thu, Dec 11, 2008 at 3:59 PM, Darren Govoni <[EMAIL PROTECTED]> wrote:

> Hi,
>  This might be a dumb question, but I have a simple field like this
>
> field: 0 -2 Word
>
> that is indexed,tokenized and stored. I've tried various ways in Lucene
> (using Luke) to search for "-2 Word" and none of them work, the query is
> re-written improperly. I escaped the -2 to "\-2 Word" and it still
> doesn't work. I've used all the analyzers.
>
>
> What's the trick here?
>
> Thanks,
> Darren
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to