I have a text field that can contain very long values (like text files). I
want to create field type for it (text, not string), in order to have
something like "Match whole word only" in notepad++, but the delimiter
should not be only white spaces. If i have:

myName=aaa bbb

I would like to get it for the following search strings "aaa", "bbb", "aaa
bbb", "myName=aaa bbb", "myName", but not for "aa" or "ame=a" or "a bb".
Another example is:

<myName>aaa bbb</myName> 
Can i do this somehow?

What should be my field type definition?

The text can contain any character. Before search i'm escaping the search
string using
http://lucene.apache.org/solr/4_2_1/solr-solrj/org/apache/solr/client/solrj/util/ClientUtils.html

Thanks



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-Match-whole-word-only-in-text-fields-tp4107795.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to