Hi Simon,
I came across your post to the solr users list about using facet
prefixes, shown below. I was wondering if you were still using your
modified version of SimpleFacets.java, and if so -- if you could send me
a copy. I'll need to implement something similar, and it never hurts to
star
You are right. I got it confused with fq (you can tell I am relative new to
solr :-) ). Thanks for the clarification.
Anyway, facet.query will not do the trick. I wanted to do a facet count on
all values starting with more than one prefix in the same field. Doing
something like:
f.field1.facet
To be clear here, facet.query does not filter the result set at all.
It provides a count for how many documents in the current result set
(determined by q/fq parameters, oh, and bq sometimes too, doh! :)
match that query.
Erik
On Sep 30, 2008, at 9:42 PM, Simon Hu wrote:
not
not really. facet.query filters the result set. Here we need to filter the
facet counts by multiple facet prefixes. facet.query would work only if the
faceted field is not a multi-value field.
Erik Hatcher wrote:
>
> If I'm not mistaken, doesn't facet.query accomplish what you want?
>
>
If I'm not mistaken, doesn't facet.query accomplish what you want?
Erik
On Sep 29, 2008, at 5:43 PM, Simon Hu wrote:
I also need the exact same feature. I was not able to find an easy
solution
and ended up modifying class SimpleFacets to make it accept an array
of
facet prefixes
I also need the exact same feature. I was not able to find an easy solution
and ended up modifying class SimpleFacets to make it accept an array of
facet prefixes per field. If you are interested, I can email you the
modified SimpleFacets.java.
-Simon
steve berry-2 wrote:
>
>
> Question: Is
steve berry wrote:
Question: Is it possible to pass complex queries to facet.prefix?
Example instead of facet.prefix:foo I want facet.prefix:foo OR
facet.prefix:bar
No (unless you want to write your own SimpleFacets subclass)
The multivalued market_category fields are flattened relatio