Web / Apache Solr Interview questions
What are the types of fields in Solr?
Solr fields are defined by a field type, which controls how values are analyzed, stored, and indexed. The common built-in categories are:
- Text fields -
text_general,text_en; analyzed and tokenized for full-text search. - String fields -
string; stored as a single exact token, used for filtering, sorting, and faceting. - Numeric fields -
pint,plong,pfloat,pdouble; support range queries and sorting. - Date fields -
pdate; ISO-8601 timestamps. - Boolean fields -
boolean; true/false values.
Fields can also be marked multiValued to hold arrays, and docValues to store a column-oriented copy used for fast sorting and faceting.
More Related questions...