Last active
January 12, 2018 13:56
-
-
Save deniscsz/0ce85aa527fe80a9dd84ed39733c8363 to your computer and use it in GitHub Desktop.
Solr 4.x schema para pt_BR text do Magento Solarium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <schema name="magento_fulltext" version="101"> | |
| <types> | |
| <fieldType name="int" class="solr.TrieIntField" precisionStep="0" positionIncrementGap="0"/> | |
| <fieldType name="string" class="solr.StrField" sortMissingLast="true"/> | |
| <fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/> | |
| <fieldType name="text_brstem" class="solr.TextField" positionIncrementGap="100"> | |
| <analyzer> | |
| <charFilter class="solr.MappingCharFilterFactory" mapping="mapping-ISOLatin1Accent.txt"/> | |
| <tokenizer class="solr.StandardTokenizerFactory"/> | |
| <filter class="solr.LowerCaseFilterFactory"/> | |
| <filter class="solr.ShingleFilterFactory" maxShingleSize="3" outputUnigrams="true"/> | |
| <filter class="solr.BrazilianStemFilterFactory"/> | |
| </analyzer> | |
| </fieldType> | |
| </types> | |
| <fields> | |
| <!-- Magento Fulltext Id, uniqueKey needs to be a string for QueryElevationComponent --> | |
| <field name="id" type="string" indexed="true" stored="true" required="true"/> | |
| <!-- Magento Product Id, must be a string to be able to group by in Solr 3.x --> | |
| <field name="product_id" type="string" indexed="true" stored="true" required="true"/> | |
| <!-- Magento Store Id --> | |
| <field name="store_id" type="int" indexed="true" stored="true" required="true"/> | |
| <!-- Magento Product Fulltext --> | |
| <field name="text" type="text_brstem" indexed="true" stored="false"/> | |
| <field name="_version_" type="long" indexed="true" stored="true"/> | |
| </fields> | |
| <uniqueKey>id</uniqueKey> | |
| <defaultSearchField>text</defaultSearchField> | |
| <solrQueryParser defaultOperator="AND"/> | |
| </schema> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment