cancel
Showing results for 
Search instead for 
Did you mean: 

about solr refinements

Former Member
0 Kudos

i am creating a refinements for flight information but flight is not a product. the flight information is parsed from the xml file and it is stored in other item type(PackageHoliday). flight information is not stored in the database..... how to index the parsed information from xml file and get the refinements on plp page. The flight products in PLP page is not indexed from solr but how to get refinements from solr........pls can anyone explain how to achieve this?????

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Two way as suggested by Tyler , so if you will make it separately you need to make index type. So for reference you can create by following way and need to write your provider where object of flight info item type will return. As you need to pick object from xml so for that you need customization so while indexing of flight info flight indo item type could be picked from xml.

 $solrIndexedType=flightInfo
 # Declare the indexed type Product
 INSERT_UPDATE SolrIndexedType;identifier[unique=true];type(code);variant;sorts(&sortRefID)
 ;$solrIndexedType;PackageHoliday;false;
 
 
 
 
 
 INSERT_UPDATE SolrIndexedProperty;solrIndexedType(identifier)[unique=true];name[unique=true];type(code);sortableType(code);currency[default=false];localized[default=false];multiValue[default=false];useForSpellchecking[default=false];useForAutocomplete[default=false];fieldValueProvider;valueProviderParameter
 ;$solrIndexedType    ; name                        ;string ;            ;    ;    ;    ;    ;    ;nameValueProvider
 

Answers (1)

Answers (1)

tylermac
Product and Topic Expert
Product and Topic Expert
0 Kudos

you could have 2 separate solr indexes, one for product and one for flight information and then you could join the results. Alternatively you can put everything in one index by doing a union on your index query, but that could make the data in your index pretty confusing.