Re: Showing facet of first N docs

2011-06-20 Thread Tommaso Teofili
2011/6/18 Dmitry Kan > Do you mean you would like to boost the facets that contain the most of the > lemmas? > That would be good, but I'd prefer getting facets, for example, from first 50 of 500 docs only . > What is the user query in this case and if possible, what is the use case > (may be

Re: Showing facet of first N docs

2011-06-20 Thread Toke Eskildsen
On Thu, 2011-06-16 at 12:39 +0200, Tommaso Teofili wrote: > Do you know if it is possible to show the facets for a particular field > related only to the first N docs of the total number of results? It collides with the inner working in Solr, as faceting does not process the doc-IDs from the match

Re: Showing facet of first N docs

2011-06-18 Thread lee carroll
Hi Tommaso I don't think you can achieve what you want using vanilla solr. Facet counts will be for the result set matching not for the top n result sets matching. However what is your use case ? Assuming its for faceted navigation showing facets for the top n result sets could be confusing to yo

Re: Showing facet of first N docs

2011-06-18 Thread Dmitry Kan
Do you mean you would like to boost the facets that contain the most of the lemmas? What is the user query in this case and if possible, what is the use case (may be some other solution exists for what you are trying to achieve)? On Thu, Jun 16, 2011 at 5:23 PM, Tommaso Teofili wrote: > Thanks Dm

Re: Showing facet of first N docs

2011-06-16 Thread karsten-solr
source-code the easier way should be to send a second request with relevance-Filter (if your sort-criteria is relevance): http://lucene.472066.n3.nabble.com/Filter-by-relevance-td1837486.html Best regards Karsten http://lucene.472066.n3.nabble.com/Showing-facet-of-first-N-docs-td3071395.html

Re: Showing facet of first N docs

2011-06-16 Thread Tommaso Teofili
Thanks Dmitry, but maybe I didn't explain correctly as I am not sure facet.offset is the right solution, I'd like not to page but to filter facets. I'll try to explain better with an example. Imagine I make a query and first 2 docs in results have both 'xyz' and 'abc' as values for field 'lemmas' w

Re: Showing facet of first N docs

2011-06-16 Thread Dmitry Kan
http://wiki.apache.org/solr/SimpleFacetParameters facet.offset This param indicates an offset into the list of constraints to allow paging. The default value is 0. This parameter can be specified on a per field basis. Dmitry On Thu, Jun 16, 2011 at 1:39 PM, Tommaso Teofili wrote: > Hi all,

Showing facet of first N docs

2011-06-16 Thread Tommaso Teofili
Hi all, Do you know if it is possible to show the facets for a particular field related only to the first N docs of the total number of results? It seems facet.limit doesn't help with it as it defines a window in the facet constraints returned. Thanks in advance, Tommaso