Solr query to get results based on the word length (letter count)

2010-12-22 Thread Giri
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!

Re: Solr query to get results based on the word length (letter count)

2010-12-22 Thread Gora Mohanty
On Wed, Dec 22, 2010 at 9:06 PM, Giri giriprak...@gmail.com 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

Re: Solr query to get results based on the word length (letter count)

2010-12-22 Thread Jonathan Rochkind
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