No good way. At indexing time, I'd just store the number of chars in the title in a field of it's own. You can possibly do that solely in schema.xml with clever use of analyzers and copyField.

Solr isn't an rdbms. Best to de-normalize at index time so what you're going to want to query is in the index.

On 12/22/2010 10:36 AM, Giri wrote:
Hi,

I have a solar index that has thousands of records, the title is one of the
solar fields, and I would like to query for title values that are less than
50 characters long. Is there a way to construct the Solr query to provide
results based on the character length?


thank you very much!

Reply via email to