on 05-18-2016 10:10 AM
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?????
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.