Solr indexing multi value fields -



Solr indexing multi value fields -

i'm starting larn solr , i'm trying model info prices of products in different bundles.

e.g.

product { allprices: { 12, 13, 14 } bundles: {bundle_1, bundle_2, bundle_3} price: ???? }

i left price field because how initialy faceted search worked. there 1 cost value indexed , used filtering.

i have products page have dropdown of bundles can select. depending on bundle select corresponding cost needs shown. how cand model behavior create possible have faceted search , utilize solr ranges.

i recommend take @ block bring together approach in solr. work needs. model product parent document, , 3 bundles kid products. each have it's own price, show easily. problem here is, solr still don't have kid level facet, need implement on own. also, solr couldn't sort docs children fields, need create aggregation

i recommend article start - http://blog.griddynamics.com/2013/09/solr-block-join-support.html

another approach model each bundle single document. have 3 docs here.

bundle1 { price: 12, name: bundle_1 product: product1 } bundle2 { price: 13, name: bundle_2 product: product1 }

however, approach have problems - info grow exponentially, since create doc every bundle have.

solr indexing lucene faceted-search

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -