Hello everyone, 

Recently we moved to DocValue fields and now we have a problem when some facet 
queries doesn’t work at all with facet.method different than enum, I know that 
enum method is more efficient for such fields than default one anyway, but I'm 
just curious to find out the reason. Here are some examples:

1) This query works fine with both fc and enum methods:
select?facet.field=datasource&facet=on&indent=on&q=emotions:*&rows=0

2) This query works only with enum method: 
select?fl=taskid,docid&q=*:*&fq=((*:*+NOT+(datasource:Test))+AND+(*:*+NOT+(datasource:wikileaks.org))+AND+(IndexDate:[2014-12-31T16\:00\:00.000Z+TO+2018-12-31T16\:59\:59.999Z]))&facet=true&facet.field=emotions&facet.limit=2147483647&facet.mincount=1&facet.sort=count+desc

        a) FC, debug output here: http://pastebin.com/TJqdJukg

        b) ENUM, debug output here: http://pastebin.com/XJLmdxxG 
<http://pastebin.com/XJLmdxxG>

  
Here is the schema fragment with description of related fields:
<fieldType name="string" class="solr.StrField" sortMissingLast="true" 
omitNorms="true"/>
<fieldType name="date" class="solr.TrieDateField" precisionStep="0" 
omitNorms="true" positionIncrementGap="0"/>
…
<field name="datasource" type="string" indexed="true" stored="true" 
required="false" multiValued="false" docValues="true"/>
<field name="IndexDate" type="date" stored="true" indexed="true"/>
<field name="emotions" type="string" stored="true" indexed="true"  
multiValued="true" docValues="true"/>

Is this somehow related to emotions field being multivalued?

Regards
Stanislav



Reply via email to