Dynamic Field Names generated using Solrizer
Solrizer, which was used to generate solr field names, is deprecated. Convert instances of Solrizer.solr_name to hard coded solr field names. The chart below shows the dynamic field ending to use based on data type (e.g. string, date, etc.) and indexing options (e.g. :facetable, searchable, etc.).
Extensions based on data type and indexed as
data type → ↓indexed as |
:date | :time | :text_en | :string | :symbol | :integer | :boolean |
---|---|---|---|---|---|---|---|
none | _dtsim | _dtsim | _tesim | _tesim | _ssim | _isim | _bsi |
:stored_searchable | _dtsim | _dtsim | _tesim | _tesim | _ssim | _isim | _bsi |
:searchable | _dtim | _dtsim | _teim | _teim | _sim | _iim | _bim |
:dateable | _dtsim | _dtsim | _dtsim | _dtsim | _dtsim | _dtsim | _dtsim |
:facetable | _sim | _sim | _sim | _sim | _sim | _sim | _sim |
:symbol | _ssim | _ssim | _ssim | _ssim | _ssim | _ssim | _ssim |
:sortable | _dti | _dti | _tei | _si | _si | _ii | _bi |
:stored_sortable | _dtsi | _dtsi | _tesi | _ssi | _ssi | _isi | _bsi |
:displayable | _ssm | _ssm | _ssm | _ssm | _ssm | _ssm | _ssm |
:unstemmed_searchable | _tim | _tim | _tim | _tim | _tim | _tim | _tim |
:simple | _dti | _dti | _tei | _si | _si | _ii | _bi |
Understanding dynamic field extensions
First character or two indicate the type of the field.
b | boolean |
---|---|
dt | date and/or time |
i | integer |
s | string |
te | English text |
The remaining characters determine how the field is handled in Solr. The order matters. They appear below in the order they are expected. All are optional, but at least one should be specified.
s | stored | indicates that the field value should be part of the retrieved results |
---|---|---|
i | indexed | indicates that the field value can be searched |
m | multiple | indicates whether or not the field can have multiple values |
Example valid extensions:
sim | s i m |
- String - indexed - multi-valued NOTE: It will not be part of the returned solr document. |
---|---|---|
tesim | te s i m |
- English text - stored - indexed - multi-valued |
dtsi | dt s i |
- Date - stored - indexed NOTE: It cannot have multiple values. |