Re: Filtering on results with more than N words.

2013-06-07 Thread Jack Krupansky
;content":["This is some more."], "content_wc_i":4, "id":"doc-5", "content":["The CD-ROM, (and num_events_seen.)"], "content_wc_i":4, "id":"doc-6", "content":["Four score and seven years ag

Re: Filtering on results with more than N words.

2013-06-06 Thread Jack Krupansky
From the book, here's an update request processor chain which will count the words in the "content" field and place it in the "content_len_I" field. Then you could do a range query on that count. content content_len_i content_len_i content_len_i -|_

Re: Filtering on results with more than N words.

2013-06-06 Thread Walter Underwood
m: Walter Underwood > Sent: Thursday, June 06, 2013 9:54 AM > To: solr-user@lucene.apache.org > Subject: Re: Filtering on results with more than N words. > > Someone else asked about this recently. The best approach is to count the > words at index time and add a field with the coun

Re: Filtering on results with more than N words.

2013-06-06 Thread Jack Krupansky
013 9:54 AM To: solr-user@lucene.apache.org Subject: Re: Filtering on results with more than N words. Someone else asked about this recently. The best approach is to count the words at index time and add a field with the count, so "title" and "title_len" or something like that. wunder On

Re: Filtering on results with more than N words.

2013-06-06 Thread Walter Underwood
Someone else asked about this recently. The best approach is to count the words at index time and add a field with the count, so "title" and "title_len" or something like that. wunder On Jun 6, 2013, at 4:20 AM, Jack Krupansky wrote: > I don't recall seeing any such filter. Sounds like a good

Re: Filtering on results with more than N words.

2013-06-06 Thread Jack Krupansky
I don't recall seeing any such filter. Sounds like a good idea though. Although, maybe it is another good idea that really isn't too necessary for solving many real world problems. -- Jack Krupansky -Original Message- From: Dotan Cohen Sent: Thursday, June 06, 2013 3:45 AM To: solr-u