score isn't a field, so what happens when you remove @Field from the score
property but leave the getter/setters?

On Mon, 8 Aug 2011 10:07:31 +0100, Kissue Kissue <kissue...@gmail.com>
wrote:
> Hi,
> 
> I am using the SolrJ client library and using a POJO with the @Field
> annotation to index documents and to retrieve documents from the index.
I
> retrieve the documents from the index like so:
> 
> List<Item> beans = response.getBeans(Item.class)
> 
> Now in order to add the scores to the beans i added a field called score
> with the @Field annotation and the scores were then returned when i read
> from the index.
> 
> Now when i am indexing, i get the error: ERROR:unknown field 'score'. I
> guess because it expects the score to be defined in my schema. Now i am
> thinking that if i define this field in my schema then rather than
> returning
> the document scores it might just go ahead and return actual values for
the
> field (null if i dont add a value).
> 
> How can i go around this problem?
> 
> Many thanks.

Reply via email to