You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Bais, Shailendra Singh" <Sh...@searshc.com> on 2011/07/08 06:33:25 UTC

Loosing out some facets when changing anything in feed.

We are trying to implement browsing based on the search functionality
(Which will have facet for that particular category along with item
list).

For this purpose we have added one field in the feed (.csv) file which
we use to create indexes so that we can do the search based on the
subcategory id (hierarchy_id)

Our plan was to add a separate request handler for this purpose but
before we could have moved forward it started giving that new problem
(not showing most of the existing facet).

It may not be that simple to figure out the issue by just looking into
that config and schema files but if you can have a look and see if you
can find something useful for us.

We don't want you to spend much time on this but we want to leverage
your expertise to resolve this issue.

We added hierarchy_id field in the feed.

We have added following entry in the schema.xml.

<field name="hierarchy_id"  type="long" indexed="true" stored="true"
required="true" />

After doing these changes re-indexed the feed and published the indexes
in solr deployment directory.

This how the request URL looks like. This the solr installation which we
are using for development the enahcnements.

http://ps1.outlet.qa.ecom.sears.com:8983/search/select?q=refrigerator&fa
cet=true&facet.mincount=1&start=0&rows=50&fl=item_id&qt=shcDismax&collap
se=true&collapse.field=item_id&f.Size.facet.sort=index&f.Capacity.facet.
sort=index&f.engn_pwr.facet.sort=index&facet.field=%7B%21ex%3Dbdn%7Dbdn&
facet.field=%7B%21ex%3DSize%7DSize&facet.field=%7B%21ex%3DCapacity%7DCap
acity&facet.field=%7B%21ex%3Dnn_size%7Dnn_size&facet.field=%7B%21ex%3DTy
pe%7DType&facet.field=%7B%21ex%3Dcolor%7Dcolor&facet.field=%7B%21ex%3Drs
ln%7Drsln&facet.field=%7B%21ex%3Dfl_typ%7Dfl_typ&facet.field=%7B%21ex%3D
engn_pwr%7Dengn_pwr&facet.field=%7B%21ex%3Dinst_typ%7Dinst_typ&facet.fie
ld=%7B%21ex%3Dexhst%7Dexhst&facet.field=%7B%21ex%3Dmat_size%7Dmat_size&f
acet.field=%7B%21ex%3Dfrm_size%7Dfrm_size&facet.field=%7B%21ex%3Dlod_typ
%7Dlod_typ&facet.field=%7B%21ex%3Drng_typ%7Drng_typ&facet.field=%7B%21ex
%3Dckg_sfc%7Dckg_sfc&facet.field=%7B%21ex%3Dvntg_sys%7Dvntg_sys&stats=tr
ue&stats.field=sp&facet.query=sp&wt=json&indent=on

The request URL remain the same. No change have made in this URL for the
new hierarchy_id. We do not want any change in the response structure.

Following is the production URL which have all the missing facet but
with the old feed. 

http://10.236.38.33:8983/search/select?q=refrigerator&facet=true&facet.m
incount=1&start=0&rows=50&fl=item_id&qt=shcDismax&collapse=true&collapse
.field=item_id&f.Size.facet.sort=index&f.Capacity.facet.sort=index&f.eng
n_pwr.facet.sort=index&facet.field=%7B%21ex%3Dbdn%7Dbdn&facet.field=%7B%
21ex%3DSize%7DSize&facet.field=%7B%21ex%3DCapacity%7DCapacity&facet.fiel
d=%7B%21ex%3Dnn_size%7Dnn_size&facet.field=%7B%21ex%3DType%7DType&facet.
field=%7B%21ex%3Dcolor%7Dcolor&facet.field=%7B%21ex%3Drsln%7Drsln&facet.
field=%7B%21ex%3Dfl_typ%7Dfl_typ&facet.field=%7B%21ex%3Dengn_pwr%7Dengn_
pwr&facet.field=%7B%21ex%3Dinst_typ%7Dinst_typ&facet.field=%7B%21ex%3Dex
hst%7Dexhst&facet.field=%7B%21ex%3Dmat_size%7Dmat_size&facet.field=%7B%2
1ex%3Dfrm_size%7Dfrm_size&facet.field=%7B%21ex%3Dlod_typ%7Dlod_typ&facet
.field=%7B%21ex%3Drng_typ%7Drng_typ&facet.field=%7B%21ex%3Dckg_sfc%7Dckg
_sfc&facet.field=%7B%21ex%3Dvntg_sys%7Dvntg_sys&stats=true&stats.field=s
p&facet.query=sp&wt=json&indent=on

 

Please find the some sample feed along with schema.xml and
solrconfig.xml.

 

Simply speaking we are losing out some facets when we change anything in
the feed.

Any help will surely appreciated.

 

Thanks

Shailendra

 

 

 

This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents. Thank you.