> I am trying to index a field which has more than one word with space e.g. > "My Word" > i am indexng it UN_TOKENIZED .. but when i use TermQuery to query "My Word" > its not yielding any result..
Seems that it should work. Few things to check: - make sure you are indexing with UN_TOKENIZED. - check that either both field and query text are lower-cased or both are not lower-cased. - use Luke to examine the content of the index (when adding as un-tokenized); print the query (toString); - do they match each other? match your expectation? > > Is term qurey limited to one word? i mean if we index a word with space and > index it UN_TOKENIZED.. > shouldnt TermQuery yeild result to "My Word". > > > Ismail There is no such limitation. Hope this helps, Doron --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]