Getting min/max of numeric doc-values facets

2014-10-09 Thread Jigar Shah
Is there some way when faceted search is executed, we can retrieve the possible min/max values of numeric doc-values field with supplied custom ranges in (LongRangeFacetCounts) or some other way to do it ? As i believe this can give application hint, and next search request can be much smarter,

custom token filter generates empty tokens

2014-10-09 Thread G.Long
Hi :) I wrote a custom token filter which removes special characters. Sometimes, all characters of the token are removed so the filter procudes an empty token. I would like to remove this token from the tokenstream but i'm not sure how to do that. Is there something missing in my custom

RE: custom token filter generates empty tokens

2014-10-09 Thread Jose Fernandez
When you return true from incrementToken() you tell Lucene to add your token to the token stream. At the end of incrementToken() check for an empty token. If it's empty then return incrementToken() to process the next token. This will affect your positions so if you're doing phrase search you

Re: custom token filter generates empty tokens

2014-10-09 Thread Ahmet Arslan
Hi G.Long, You can use TrimFilter+LengthFilter to remove empty/whitespace tokens. Ahmet On Thursday, October 9, 2014 5:54 PM, G.Long jde...@gmail.com wrote: Hi :) I wrote a custom token filter which removes special characters. Sometimes, all characters of the token are removed so the filter

Re: Delete / Update facets from taxonomy index

2014-10-09 Thread Shai Erera
Hi You cannot remove facets from the taxonomy index, but you can reindex a single document and update its facets. This will add new facets to the taxonomy index (if they do not already exist). You do that just like you reindex any document, by calling IndexWriter.updateDocument(). Just make sure

Re: topdocs per facet

2014-10-09 Thread Shai Erera
The facets translation should be done at the application level. So if you index the dimension A w/ two facets A/A1 and A/A2, where A1 should also be translated to B1 and A2 translated to B2, there are several options: Index the dimensions A and B with their respective facets, and count the

Re: Exception from FastTaxonomyFacetCounts

2014-10-09 Thread Shai Erera
This usually means that your IndexReader and TaxonomyReader are out of sync. That is, the IndexReader sees category ordinals that the TaxonomyReader does not yet see. Do you use SearcherTaxonomyManager in your application? It ensures that the two are always in sync, i.e. reopened together and

Re: Getting min/max of numeric doc-values facets

2014-10-09 Thread Chris Hostetter
: Is there some way when faceted search is executed, we can retrieve the : possible min/max values of numeric doc-values field with supplied custom : ranges in (LongRangeFacetCounts) or some other way to do it ? : : As i believe this can give application hint, and next search request can be :

Re: Wow8899

2014-10-09 Thread mickeyforster15
1470356651177.jpg --Original Message-- From: Sick Mick To: java-user@lucene.apache.org Subject: Wow8899 Sent: 8 Oct 2014 23:23 Sent from my iPhone Sent from my BlackBerry® smartphone - To unsubscribe, e-mail: