Hi Nilesh,

I am not sure the faceting code does what you think it does. However,
there are different options and you can experiment with whichever one
is best for you. They are controlled by the facet.method parameter:
http://wiki.apache.org/solr/SimpleFacetParameters#facet.method

Regards,
   Alex.
Personal website: http://www.outerthoughts.com/
LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
- Time is the quality of nature that keeps events from happening all
at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
book)


On Fri, Jan 31, 2014 at 12:51 AM, Felipe Dantas de Souza Paiva
<cad_fpa...@uolinc.com> wrote:
> Hi Nilesh,
>
> maybe Facetting is not the right thing for you, because 'faceting is the 
> arrangement of search results into categories based on indexed terms' 
> (https://cwiki.apache.org/confluence/display/solr/Faceting).
>
> Perhaps you could use Result Clustering 
> (https://cwiki.apache.org/confluence/display/solr/Result+Clustering), for   
> the clustering algorithm is applied to the search result of each single query.
>
> Hope this helps.
>
> Felipe Dantas de Souza Paiva
> ________________________________________
> De: Kuchekar [kuchekar.nil...@gmail.com]
> Enviado: quinta-feira, 30 de janeiro de 2014 15:35
> Para: solr-user@lucene.apache.org
> Assunto: Re: Regarding Solr Faceting on the query response.
>
> Hi Mikhail,
>
>                  I would like my faceting to run only on my resultset
> returned as in only on numFound, rather than the whole index.
>
> In the example, even when I specify the query 'company:Apple' .. it gives
> me faceted results for other companies. This means that it is querying
> against the whole index, rather than just the result set.
>
> Using facet.mincount=1 will give me faceted values which are greater than
> 1, but that will again to retrieve all the distinct values (Apple, Bose,
> Chevron, ..Oracle..) of facet field (company) query the whole index.
>
> What I would like to do is ... facet only on the resultset.
>
> i.e. my query (q= company:Apple AND technologies:java ) should return, only
> the facet details about 'Apple' since that is only present in the results
> set. But it provides me the list of other Company Names ... which makes me
> believe that it is querying the whole index to get the distinct value for
> the company..
>
> "docs": [ { "id": "ABC123", "company": [ "APPLE" ] },
> { "id": "ABC1234", "company": [ "APPLE" ] },
> { "id": "ABC1235", "company": [ "APPLE" ] },
> { "id": "ABC1236", "company": [ "APPLE" ] } ] }, "facet_counts": { "
> facet_queries": { "p_company:ucsf\n": 1 }, "facet_fields": { "company": [
> "APPLE", 4, ] }, "facet_dates": {}, "facet_ranges": {} }
>
>
>  Thanks.
> Kuchekar, Nilesh
>
>
> On Thu, Jan 30, 2014 at 2:13 AM, Mikhail Khludnev <
> mkhlud...@griddynamics.com> wrote:
>
>> Hello
>> Do you mean setting
>> http://wiki.apache.org/solr/SimpleFacetParameters#facet.mincount to 1 or
>> you want to facet only returned page (rows) instead of full resultset
>> (numFound) ?
>>
>>
>> On Thu, Jan 30, 2014 at 6:24 AM, Nilesh Kuchekar
>> <kuchekar.nil...@gmail.com>wrote:
>>
>> > Yeah it's a typo... I meant company:Apple
>> >
>> > Thanks
>> > Nilesh
>> >
>> > > On Jan 29, 2014, at 8:59 PM, Alexandre Rafalovitch <arafa...@gmail.com
>> >
>> > wrote:
>> > >
>> > >> On Thu, Jan 30, 2014 at 3:43 AM, Kuchekar <kuchekar.nil...@gmail.com>
>> > wrote:
>> > >> company=Apple
>> > > Did you mean company:Apple ?
>> > >
>> > > Otherwise, that could be the issue.
>> > >
>> > > Regards,
>> > >   Alex.
>> > >
>> > >
>> > > Personal website: http://www.outerthoughts.com/
>> > > LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
>> > > - Time is the quality of nature that keeps events from happening all
>> > > at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
>> > > book)
>> >
>>
>>
>>
>> --
>> Sincerely yours
>> Mikhail Khludnev
>> Principal Engineer,
>> Grid Dynamics
>>
>> <http://www.griddynamics.com>
>>  <mkhlud...@griddynamics.com>
>>
>
> ________________________________
>
> AVISO: A informação contida neste e-mail, bem como em qualquer de seus 
> anexos, é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s) 
> acima referido(s), podendo conter informações sigilosas e/ou legalmente 
> protegidas. Caso você não seja o destinatário desta mensagem, informamos que 
> qualquer divulgação, distribuição ou cópia deste e-mail e/ou de qualquer de 
> seus anexos é absolutamente proibida. Solicitamos que o remetente seja 
> comunicado imediatamente, respondendo esta mensagem, e que o original desta 
> mensagem e de seus anexos, bem como toda e qualquer cópia e/ou impressão 
> realizada a partir destes, sejam permanentemente apagados e/ou destruídos. 
> Informações adicionais sobre nossa empresa podem ser obtidas no site 
> http://sobre.uol.com.br/.
>
> NOTICE: The information contained in this e-mail and any attachments thereto 
> is CONFIDENTIAL and is intended only for use by the recipient named herein 
> and may contain legally privileged and/or secret information.
> If you are not the e-mail´s intended recipient, you are hereby notified that 
> any dissemination, distribution or copy of this e-mail, and/or any 
> attachments thereto, is strictly prohibited. Please immediately notify the 
> sender replying to the above mentioned e-mail address, and permanently delete 
> and/or destroy the original and any copy of this e-mail and/or its 
> attachments, as well as any printout thereof. Additional information about 
> our company may be obtained through the site http://www.uol.com.br/ir/.

Reply via email to