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 abhayd <aj...@hotmail.com> on 2011/10/07 23:36:20 UTC

facet pivot query and find details abt results

hi 
here is my snippet of schema.xml
==========================
  <field name="topic_id" type="string" indexed="true" stored="true"
omitNorms="true"/>
   <field name="hierarchy" type="string" indexed="true" stored="true"
omitNorms="true" multiValued="false"/>
   <field name="CATEGORY_LEVEL_1" type="string" indexed="true" stored="true"
omitNorms="true"/>
   <field name="CATEGORY_LEVEL_2" type="string" indexed="true" stored="true"
omitNorms="true"/>
   <field name="CATEGORY_LEVEL_3" type="string" indexed="true" stored="true"
omitNorms="true"/>
   <field name="CATEGORY_LEVEL_4" type="string" indexed="true" stored="true"
omitNorms="true"/>
   <field name="device" type="sint" indexed="true" stored="true"
omitNorms="true" default="0"/>
.....

here is my query which works fine
=========================
q=device_type:"NA" OR
device_type:"iphone"&start=0&rows=0&facet=true&facet.pivot=CATEGORY_LEVEL_1,CATEGORY_LEVEL_2,CATEGORY_LEVEL_3,CATEGORY_LEVEL_4&indent=on&wt=json

Thing i want to know with the query response or any other way if any of the
levels have device in it or not. In the above schema device=0 means doc is
not related to device.

Any thing can be done during index tyme or query time to know this ? without
actually looking at results


--
View this message in context: http://lucene.472066.n3.nabble.com/facet-pivot-query-and-find-details-abt-results-tp3404163p3404163.html
Sent from the Solr - User mailing list archive at Nabble.com.