14 maj 2008 kl. 17.30 skrev Erick Erickson:
Another
possibility would be to introduce marker tokens in your field, index
something like "$ member of technical staff $" and then, when
querying for exact matches, *add* the $ tokens to the beginning
and end of the query.
Just a note, I've hit pro
Keeping a duplicate field is certainly one way to go, and assuming that
it's just the title the duplicate field probably won't increase your
index much. I'd recommend just giving it a try, it probably costs less
resource wise than you think.
You'll have to do something like this to get things to w
Thanks Erick...
My index size is ~2 GB. Is it a good idea to keep another duplicate field
as UN_TOKENIZED and search using KeywordAnalyzer?
Few points:
1. when I say exact match then I mean the exact phrase match only. That
implies the query should not match a document with the field value "Memb
First, why do you OR together the different cases? Assuming
you're pushing your query through StandardAnalyzer, it'll lowercase
for you (just as it did during indexing).
But to your question. Would you expect your query to match a document
with the field value "Member of Technical Staff for Accoun
Hi,
I have a field in index which has been indexed using StandardAnalyzer and as
TOKENIZED. Now I would like to write a query which returns the hit if there
is a exact match on the field value.
Say, if field value is : Member of Technical Staff
then "member of technical staff" OR "Member of Techn