Question abount combining InvertedIndex and SortField

2019-12-30 Thread 小鱼儿
Assume i first use keyword search to get a DocIDSet from inverted index, then i want to sort these docIds by some numeric field, like a `updateTime`, does Lucene do this without need of loading the Document objects but only with an sorted index on `updateTime`? Which i call it "Index-Only Sort Opti

Re: Searching number of tokens in text field

2019-12-30 Thread Erick Erickson
This comes up occasionally, it’d be a neat thing to add to Solr if you’re motivated. It gets tricky though. - part of the config would have to be the name of the length field to put the result into, that part’s easy. - The trickier part is “when should the count be incremented?”. For instance,