Either docValues set to true or field needs to be indexed to use the field with faceting.
On Fri, Apr 1, 2022, 5:01 AM Neha Gupta <neha.gu...@uni-jena.de> wrote: > Hello Andy, > > Thanks for the reply. > > I had given > > facet.field=taxo_domain_mother > > in the query but no result was coming. > > Now i had set docValues=true for this attribute and not facet is working. > > Just want to know is it necessary to set the docValue to true to make > facet working for the attribute? > > > Thanks and Regards > > Neha Gupta > > > On 31/03/2022 17:05, Andy Lester wrote: > >> I have indexed 4 fields and want to use facet on "taxo_domain_mother" > but i am not getting any result<vPpLj101qM64P0fA.png> > > It looks like you don’t have facet.field=taxo_domain_mother specified in > your query. It’s hard to tell exactly because screenshots make it > difficult to figure things out. > > > > > > > >> Do i need to configure something for "taxo_domain_mother" field so that > it can be used as facet ? > > For performance, you want docValues=“true” on any field you facet on. > > > > Try adding a facet.field=taxo_domain_mother to your query. If it > doesn’t work, and you need more help, please cut & paste the exact text of > the query, and then the exact text of the response. Or make a Gist on > GitHub. > > > > Andy > > >