Knowledgebase

SOLR Search

SOLR Search

SOLR is using tomcat. To restart (needed when configuration change):

/etc/init.d/tomcat6 stop

/etc/init.d/tomcat6 start

tomcat log: /opt/tomcat/logs/catalina.log




solr configuration files:

/opt/solr/conf/schema.xml

/opt/solr/conf/solrconfig.xml


admin site: http://mag-web-prod1:8080/solr/admin




filters are defined in: schema.xml

solr.NGramFilterFactory - splits words into chunks, for example "12345" -> "123", "234", "345", "1234", "2345", "12345"

solr.WordDelimiterFilterFactory splits words into chunks if finds dash, change from numeric to alpha, lower case to upper, etc.





documentation on filters: http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#TokenFilterFactories




current text field filters (schema.xml)






enablePositionIncrements="true"/>
catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/>








enablePositionIncrements="true"/>
catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0"/>








to add partial search for UPC and MFG Part NO: new type was added (it is using Keyword Tokenizer and NGram Filter

























and the fields were to assigned to it:







solrconfig.xml modification: attr_mfr_part_no_en and attr_sku_upc_en were added to magento_en request handler:




fulltext_1_en^1.0 fulltext_2_en^2.0 fulltext_3_en^3.0 fulltext_4_en^4.0 fulltext_5_en^5.0 attr_mfr_part_no_en^1.0 attr_sku_upc_en^1.0
fulltext_1_en^1.0 fulltext_2_en^2.0 fulltext_3_en^3.0 fulltext_4_en^4.0 fulltext_5_en^5.0 attr_mfr_part_no_en^1.0 attr_sku_upc_en^1.0
1
1
dismax
explicit
false
false
1


spellcheck


Post Date: 2015-01-30 13:11:12 · Tags: Knowledgebase,

Article Topics

Apache
 . . .SSL (1)
Mysql (2)
SOLR (1)
Oracle (4)
Unix (2)
 . . .Command Line (1)

Quick Contact

Phone: 608-320-9321

pdf document opens new tab Resume

LinkedIn opens new tab LinkedIn Profile

Payments opens new tab Online Payments