I am facing issue in Solr search. My schema is as follows
You need to use the text field type since you intend to search the tokens:
To be specific for Tarun Nagpal <tarunn@abc.com>
:
A string field will answer ==
equality and wildcard queries like *un Nagp*
, *unn@abc.com>
and even more apparently exotic queries.
A text field will answer to the tokens tarun
, nagpal
, tarunn
abc
and com
.
Other field types implementing N-gram and Soundex can even correct your spelling.
See the excellent https://stackoverflow.com/a/2119479/604511