I did not use facets in my implementation, so I don't have any
facet-specific code snippet that would be helpful to you. However, if
your handler extends SearchHandler and calls super.handleRequestBody()
it should be running the facet component code. You have access to the
SolrQueryResponse built by it, and may be able to get the data out of
that object. You'll need to look at the javadoc for NamedList, and I
found it helpful to dump the list in debug statements so I could examine
its structure and contents. I suspect you need something like
rsp.getValues().get("facet_counts") to get the facet data, but haven't
tested it.
-Cat Bieber
On 07/05/2012 04:32 AM, AlexR wrote:
Hi,
thanks a lot for your answer, and sorry for my late response.
It's my first time to write a solr plugin. I already have a plugin with
empty handleRequestBody() method and i'm able to call them.
I need the list of facetted field person (facet.field=person) in my method.
but i don't know how.
do you have a code snipped of your implementation?
thx
Alex
--
View this message in context:
http://lucene.472066.n3.nabble.com/alphanumeric-interval-tp3990965p3993148.html
Sent from the Solr - User mailing list archive at Nabble.com.