Hi Phanindra,
Have you tried this syntax ?

&facet=true&facet.field={!ex=st key=terms facet.limit=5
facet.prefix=ap}query_terms&facet.field={!key=terms2
facet.limit=1}query_terms&rows=0&facet.mincount=1

This seems the proper syntax, I found it here :
https://issues.apache.org/jira/browse/SOLR-4717

Is this solving your problem ?

Cheers

2015-06-16 0:05 GMT+01:00 Phanindra R <phani...@gmail.com>:

> Hi guys,
>        Is there a way to facet on same field in *different ways?* For
> example, using a different facet.prefix. Here are the details
>
> facet.field={!key=myKey}myField&facet.prefix=p   ==> works
> facet.field={!key=myKey}myField&f.myField.facet.prefix=p   ==> works
> facet.field={!key=myKey}myField&f.myKey.facet.prefix=p   ==>* doesn't work
>  (ref: Solr-1351)*
>
> In addition, when I try *f.myKey.facet.range.gap=2.0.* it actually doesn't
> recognize it and throws the error: "Missing required parameter:
> f.myField.facet.range.gap (or default: facet.range.gap)"
>
> I'm using Solr 4.10
>
> Ref: https://issues.apache.org/jira/browse/SOLR-1351
>
> Thanks
>



-- 
--------------------------

Benedetti Alessandro
Visiting card : http://about.me/alessandro_benedetti

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

Reply via email to