lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kissue Kissue <kissue...@gmail.com>
Subject Re: Including Score in Solr POJO
Date Mon, 23 May 2011 15:22:42 GMT
Thanks Anuj for your reply. Would it then include it as a field in my POJO?
How do i define such field? I have a POJO with the @Field annotation which
is mapped to fields in my schema.

Thanks.

On Mon, May 23, 2011 at 4:10 PM, Anuj Kumar <anujsays@gmail.com> wrote:

> Hi,
>
> If you mean SolrJ (as I understand by your description of POJOs), you can
> add the score by setting the property IncludeScore to true. For example-
>
> SolrQuery query = new SolrQuery().
>    setQuery(keyword).
>      *setIncludeScore(true);*
>
> Regards,
> Anuj
>
> On Mon, May 23, 2011 at 8:31 PM, Kissue Kissue <kissuenow@gmail.com>
> wrote:
>
> > Hi,
> >
> > I am currently using Solr and indexing/reading my documents as POJO. The
> > question i have is how can i include the score in the POJO for each
> > document
> > found in the index?
> >
> > Thanks.
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message