Hi,
I have not tried that but if you add a field annotation for "score" in your
POJO and set the query object to include the score.
Doesn't it populate the POJOs score field?
Are you using-
http://lucene.apache.org/solr/api/org/apache/solr/client/solrj/beans/DocumentObjectBinder.html
for appropri
Hi Anuj,
Thanks for your response. I am actually doing a bean search so am doing the
following:
SolrQuery solrQuery = new SolrQuery(query);
QueryResponse response = solr.query(solrQuery);
List beans = response.getBeans(Product.class);
It is not immediately clear to me ho
Hi,
On Mon, May 23, 2011 at 8:52 PM, Kissue Kissue wrote:
> Thanks Anuj for your reply. Would it then include it as a field in my POJO?
>
I meant the score given by Solr in response to the search query. Is it an
application specific score that you want to include?
> How do i define such field
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 wrote:
> Hi,
>
> If you mean SolrJ (as I understand by you
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 K
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.