lucene - Solr Text field and String field - different search behaviour -



lucene - Solr Text field and String field - different search behaviour -

i working on solr 4+.

i have several fields solr schema different solr field types.

does search on text field , string field differs?

because trying search on string field (which re-create field of few facet fields) not work expected. destination string field indexed , stored both.

however, when alter destination field text field (only indexed), works fine.

can suggest why happens? difference between text , string fields in solr in respect searches?

textfields have tokenizer , text analysis attached, meaning indexed content broken separate tokens there no need exact match - each word / token can matched separately decide if whole document should included in response.

strfields cannot have tokenization or analysis / filters applied, , give results exact matches. if need strfield analysis or filters applied, can implement using textfield , keywordtokenizer.

solr lucene solr4 solrnet

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -