Jeesh, I really need to check Jira more!  This is the second time I re-invented 
a wheel.  At least in this case it was semi-trivial.

My implementation includes a regexp in which a field must match for inclusion.  
I suppose an even more thorough implementation would add a regexp to 
specifically exclude name patterns.  Both should be optional.  I'd be happy to 
add my changes back. I'm working through some public release & copyright issues 
with my employer (MITRE) right now to ease more contributions from me in the 
future.  But in this case there's a trivial bit of code involved -- it should 
be a non-issue.

~ David Smiley
Author: http://www.packtpub.com/solr-1-4-enterprise-search-server/

On Mar 18, 2010, at 10:37 PM, Erik Hatcher wrote:

> David - sounds kinda like this one: 
> http://issues.apache.org/jira/browse/SOLR-1280 
>  :)
> 
> Maybe you'd be up for rounding this issue out with your enhancements  
> and get this committable?
> 
>       Erik
> 
> On Mar 18, 2010, at 4:06 PM, Smiley, David W. wrote:
> 
>> Coincidentally I'm working on something like this right now.   
>> However in my case, I want results filtered by the current search  
>> for the facets they use (which is a subset of all available), with a  
>> count.  This is a sort of meta-facet since its faceting on the  
>> facetable fields.  I've implemented this by adding an  
>> UpdateRequestProcessor implementation that finds fields matching a  
>> certain pattern and simply adding their names to a field I've chosen  
>> -- which will at query time be faceted on.  Pretty easy.
>> 
>> ~ David Smiley
>> Author: http://www.packtpub.com/solr-1-4-enterprise-search-server/
>> 
>> On Mar 18, 2010, at 3:58 PM, homerlex wrote:
>> 
>>> 
>>> Thanks for the reply.  Can someone point me to a sample on how to  
>>> use the
>>> luke request handler to get this info?
>>> 
>>> 
>>> Erik Hatcher-4 wrote:
>>>> 
>>>> No, there isn't.  How would one know what all the facet fields are,
>>>> though?
>>>> 
>>>> One trick, use the luke request handler to get the list of fields,
>>>> then use that list to construct the facet fields request parameters.
>>>> 
>>>>    Erik
>>>> 
>>>> 
>>>> 
>>> 
>>> -- 
>>> View this message in context: 
>>> http://old.nabble.com/Return-all-Facets--tp27944999p27950714.html
>>> Sent from the Solr - User mailing list archive at Nabble.com.
>>> 
>> 
>> 
>> 
>> 
>> 
> 


Reply via email to