Hm, I don't follow what you are looking to do, Oliver.  You want to take the 
field length into account..... when indexing?  Or when searching?  You want it 
to affect relevance?

You can certainly get the length of the String (original value) in a field 
*after* you get your result set, but that's probably not what you are after, 
because that's just a length()-type call.

 Otis
----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/



----- Original Message ----
> From: Oliver Beattie <oli...@obeattie.com>
> To: solr-user <solr-user@lucene.apache.org>
> Sent: Fri, April 16, 2010 8:52:58 AM
> Subject: Getting the length of a field?
> 
> Hi there,

I'm looking around to see if there's a function that will 
> return the length
of a string in a field, but not seeing one. This is a field 
> whose data I
store, but don't use for querying generally, but I want to be 
> able to take
its length into account. Is this possible?

Any help much 
> appreciated :)

—Oliver

Reply via email to