Pagination Question

2017-09-02 Thread Bryan Bende
Hello, I'm trying to implement standard pagination with sorting and faceting, and I have some code like the following: // Convert user supplied sorts to Lucene Sort, or use Sort.RELEVANCE if none provided Sort sort = ...; FacetsCollector facetsCollector = new FacetsCollector(); TopField

Re: How to load all document fields, together with facet fields?

2017-09-02 Thread Vjeran Marcinko
Yes, when I load the doc plainly using IndexSearcher, I got the doc, but without special faceted fields:: name = firstDoc (stored,indexed,tokenized,omitNorms,indexOptions=DOCS) category = cars (stored,indexed,tokenized) But I need all those faceted fields somehow, such as when I was saving the do

Re: How to load all document fields, together with facet fields?

2017-09-02 Thread Michael McCandless
Right, you just need another line like this: doc.add(new StoredField("storedcategory", category)); Though, since your TextField category is marked as Field.Store.YES, it should have been in the document when you loaded it at search time. Are you sure it's not there? Mike McCandless http://bl

Re: No varargs paraemters in LongRange?

2017-09-02 Thread Matthias Müller
... too quick typing. Of course the highlander principle is at work - there can only be one. Am Samstag, den 02.09.2017, 09:27 +0200 schrieb Matthias Müller: > (lucene 6.6.0) > > Hi, > > is there a reason why LongRange only provides array-based > constructors > and queries, while LongPoint featu

No varargs paraemters in LongRange?

2017-09-02 Thread Matthias Müller
(lucene 6.6.0) Hi, is there a reason why LongRange only provides array-based constructors and queries, while LongPoint features varargs? -Matthias - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional