You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Villemos, Gert" <ge...@logica.com> on 2009/08/11 06:59:51 UTC

Retrieving the boost factor using Solrj CommonsHttpSolrServer

I'm using the solrj CommonsHttpSolrServer to retrieve documents from the index for update. I therefore also need to retrieve the boost factor as else each resubmission would reset the boost factor. I just cant figure out how to retrieve the boost factor.
 
The boost factor is available in the SolrInputDocument, but not in the SolrDocument returned by the SolrServer 'query' method. And there is no relationship between the SolrInputDocument and the SolrDocument (... which in itself is pretty confusing).
 
How can I get the boost factor? Do I have to use 'request' method and parse the result myself?
 
Cheers,
Gert.
 
 


Please help Logica to respect the environment by not printing this email  / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail /  Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen /  Por favor ajude a Logica a respeitar o ambiente nao imprimindo este correio electronico.



This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.


Re: Retrieving the boost factor using Solrj CommonsHttpSolrServer

Posted by Avlesh Singh <av...@gmail.com>.
>
> The boost factor is available in the SolrInputDocument, but not in the
> SolrDocument returned by the SolrServer 'query' method
>
Yes, you are right. There seems to be an inconsistency.

And there is no relationship between the SolrInputDocument and the
> SolrDocument (... which in itself is pretty confusing).
>
I definitely agree with you.

Actually, I always had this question for Yonik (the SolrDocument class has
your name, Yonik) - One should always use SolrInputDocument (and not
SolrDocument) for indexing, right? Why do we have setField, addField and
removeFields as public methods in the SolrDocument class?

Cheers
Avlesh

On Tue, Aug 11, 2009 at 10:29 AM, Villemos, Gert
<ge...@logica.com>wrote:

> I'm using the solrj CommonsHttpSolrServer to retrieve documents from the
> index for update. I therefore also need to retrieve the boost factor as else
> each resubmission would reset the boost factor. I just cant figure out how
> to retrieve the boost factor.
>
> The boost factor is available in the SolrInputDocument, but not in the
> SolrDocument returned by the SolrServer 'query' method. And there is no
> relationship between the SolrInputDocument and the SolrDocument (... which
> in itself is pretty confusing).
>
> How can I get the boost factor? Do I have to use 'request' method and parse
> the result myself?
>
> Cheers,
> Gert.
>
>
>
>
> Please help Logica to respect the environment by not printing this email  /
> Pour contribuer comme Logica au respect de l'environnement, merci de ne pas
> imprimer ce mail /  Bitte drucken Sie diese Nachricht nicht aus und helfen
> Sie so Logica dabei, die Umwelt zu schützen /  Por favor ajude a Logica a
> respeitar o ambiente nao imprimindo este correio electronico.
>
>
>
> This e-mail and any attachment is for authorised use by the intended
> recipient(s) only. It may contain proprietary material, confidential
> information and/or be subject to legal privilege. It should not be copied,
> disclosed to, retained or used by, any other party. If you are not an
> intended recipient then please promptly delete this e-mail and any
> attachment and all copies and inform the sender. Thank you.
>
>

Re: Retrieving the boost factor using Solrj CommonsHttpSolrServer

Posted by Chris Hostetter <ho...@fucit.org>.
: Subject: Retrieving the boost factor using Solrj CommonsHttpSolrServer
: References:
:     <e3...@mail.gmail.com><957081.80086
:     .qm@web50309.mail.re2.yahoo.com><e3cd93650908010915j162baaddved542c8482d8e
:     05@mail.gmail.com><e3cd93650908101259y39c4534ekd4643baa714c4960@mail.gmail
:     .com> <f1...@mail.gmail.com>

http://people.apache.org/~hossman/#threadhijack
Thread Hijacking on Mailing Lists

When starting a new discussion on a mailing list, please do not reply to 
an existing message, instead start a fresh email.  Even if you change the 
subject line of your email, other mail headers still track which thread 
you replied to and your question is "hidden" in that thread and gets less 
attention.   It makes following discussions in the mailing list archives 
particularly difficult.
See Also:  http://en.wikipedia.org/wiki/Thread_hijacking



-Hoss