Other things to consider, without seeing your raw query, is make sure facet=true is in it, and ideally for facets you want a string field rather than text and I docvalues/stored being true, then rerun a sample index and test again. Also facets work on dynamic fields as well, I don’t. Know if docvals do however
> On Apr 3, 2022, at 1:03 AM, Neha Gupta <neha.gu...@uni-jena.de> wrote: > > Thanks James...this is what i was looking for. > >> On 02/04/2022 03:24, James Greene wrote: >> 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 >>>>