Licinio Fernández Maurelo wrote:
i'm trying to do some filtering in the count list retrieved by solr when
doing a faceting query ,

i'm wondering how can i use facet.prefix to gem something like this:

Query

........facet.field=foo&facet.prefix=A OR B

Response

<lst name="facet_fields">
-
<lst name="foo">
<int name="A********">12560</int>
<int name="A*********">5440</int>
<int name="B**********">2357</int>
.
.
.
</lst>



How can i achieve such this behaviour?

Best Regards


You cannot set a query for facet.prefix parameter. facet.prefix should
be a prefix *string* of terms in the index, and you can set it at a time.
So I think you need to send two requests to get what you want:

...&facet.field=foo&facet.prefix=A
...&facet.field=foo&facet.prefix=B


Koji


Reply via email to