This should work.  You should be able to find an un-tokenized field
containing spaces with a TermQuery.  Nothing should ever tokenize the
string.

Can you please supply a simple, self-contained example showing that this
does not work?

Thanks,

Doug

> -----Original Message-----
> From: Winton Davies [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 31, 2001 1:03 AM
> To: [EMAIL PROTECTED]
> Subject: Querying an exact string match ?
> 
> 
> Hi,
> 
>   I have a field which I need to match exactly -- Ideally it 
> shouldn't 
> even be tokenized, but I can't find a way to do that -- adding a 
> field that is indexed but not tokenized, doesn't seem to work -- or 
> at least a Term Query doesn't work.
> 
>   eg the field is "x y z" -- and I do a phrase query "x y" it should 
> not match -- just "x y z" should match.
>  
> Cheers,
>   Winton
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to