What about a custom component? Something similar to spell-checker? Add
it last after everything else.

It would have to be custom because you have some domain magic about
how to decide what fields to facet on.

Regards,
  Alex.
----
Newsletter and resources for Solr beginners and intermediates:
http://www.solr-start.com/


On 28 April 2016 at 11:45, Erick Erickson <erickerick...@gmail.com> wrote:
> Mark:
>
> You can do anything you want that Java can do ;). Smart-alec comments
> aside, there's
> no mechanism for doing this in Solr that I know of. The first thing
> I'd do is try the two-query-
> from-the-client approach to see if it was "fast enough".
>
> Best,
> Erick (the other one)
>
> On Wed, Apr 27, 2016 at 1:21 PM, Mark Robinson <mark123lea...@gmail.com> 
> wrote:
>> Thanks Eric!
>> So that will mean another call will be definitely required to SOLR with the
>> facets,  before the results can be send back (with the facet fields being
>> derived traversing through the response).
>>
>> I was basically checking on whether in the "process" method (I believe
>> results will be accessed in the process method), we can dynamically
>> generate facets after traversing through the results and identifying the
>> fields for faceting, using some aggregation function or so, without having
>> to make another call using facet=on&facet.field=<field_name>, before the
>> response is send back to the user.
>>
>> Cheers!
>>
>> On Wed, Apr 27, 2016 at 2:27 PM, Erik Hatcher <erik.hatc...@gmail.com>
>> wrote:
>>
>>> Results will vary based on how you indexed those fields, but sure…
>>> &facet=on&facet.field=<field_name> - with sufficient RAM, lots of fun to be
>>> had!
>>>
>>> —
>>> Erik Hatcher, Senior Solutions Architect
>>> http://www.lucidworks.com <http://www.lucidworks.com/>
>>>
>>>
>>>
>>> > On Apr 27, 2016, at 12:13 PM, Mark Robinson <mark123lea...@gmail.com>
>>> wrote:
>>> >
>>> > Hi,
>>> >
>>> > If I don't have my facet list at query time, from the results can I
>>> select
>>> > some fields and by any means create a facet on them? ie after I get the
>>> > results I want to identify some fields as facets and send back facets for
>>> > them in the response.
>>> >
>>> > A kind of very dynamic faceting based on the results!
>>> >
>>> > Cld some one pls share their idea.
>>> >
>>> > Thanks!
>>> > Anil.
>>>
>>>

Reply via email to