Lucene 6 and Taxonomy Index Writer

2017-05-07 Thread Arjun Dhar
Hi, the previous version of Lucene I was on was 4.4.0. On upgrading to 6.5.1 I found some issues (normal). However for taxanomy, I was relying then on an experimental class "org.apache.lucene.facet.index.FacetFields" which also took "org.apache.lucene.facet.params.FacetIndexingParams". Both seem t

Unable to sort when using a multiCollector

2013-06-03 Thread Arjun Dhar
I have a DrillDownQuery for taxonomy Search (Category path based search) The following works beautifully: However there is no Constructor or method arguments to allow sorting; so I did: ...which throws some rubbish. I have followed all the rules for Indexing for sorting etc. (On a Numeric Field

Re: Unable to sort when searching with a MultiCollector

2013-06-03 Thread Arjun Dhar
ok managed to FIX it! :) Too a Q from http://lucene.472066.n3.nabble.com/sort-by-field-and-score-td4022541.html So without sort the code that always worked was: Assume : facetsCollector - Defined With Sort: (Use *TopFieldCollector*) -- View this message in context: http://lucene.472066.n3

Re: Why Numeric (IntField) tokenized true by Default?

2013-06-03 Thread Arjun Dhar
Thanks In other words does that imply "tokenized" property is ignored for Numbers? ..if so, would it be technically correct (atleast from a correctness standpoint), to have it set as "false" in the FieldType definitions then ? -- View this message in context: http://lucene.472066.n3.nabble.

Re: Why Numeric (IntField) tokenized true by Default?

2013-06-03 Thread Arjun Dhar
Ah .. Sorry i think i got it. It is still tokenized for purposes u mentioned. Only for sort there is an exception to the rule. ok cool thanks !! :) -- View this message in context: http://lucene.472066.n3.nabble.com/Why-Numeric-IntField-tokenized-true-by-Default-tp4067738p4067790.html Sent fr

Re: Unable to sort when searching with a MultiCollector

2013-06-03 Thread Arjun Dhar
I have also observed, that when using the TopDocsCollector version of the Query, if the hits exceed the the number of actual results, it returns nothing. In the case of of plain .search(query, hits, sort); the damn thing keeps going on n on. If i give an absurd number of hits, it wont stop. --

Why Numeric (IntField) tokenized true by Default?

2013-06-03 Thread Arjun Dhar
This post was updated on Jun 03, 2013; 3:48am. If One refers to the JavaDoc for Sort it states that INDEX and and the field should NOT be TOKENIZED. Its a common use case for Numbers to be Sorted. Am curious to find the default values of say IntField as : TYPE_NOT_STORED.setTokenized(true); A