Facing issue while searching on string type field

前端 未结 1 443
南笙
南笙 2021-01-24 00:28

I am facing issue in Solr search. My schema is as follows



    

        
相关标签:
1条回答
  • 2021-01-24 01:26

    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

    0 讨论(0)
提交回复
热议问题