Re: Best way to facets with value preprocessing (w/ docValues)

2015-07-14 Thread Harry Yoo
I had a same issue and here is my solution. Basically, option #1 that Konstantin suggested, public class TextDocValueField extends TextField { @Override public List createFields(SchemaField field, Object value, float boost) { if (field.hasDocValues()) { List fields = new ArrayList

Re: Best way to facets with value preprocessing (w/ docValues)

2015-07-12 Thread Toke Eskildsen
Konstantin Gribov wrote: > Any thoughts on it? Can something like this be merged into trunk to support > docValues on `solr.TextField`? > [1]: https://github.com/grossws/solr-dvtf This looks like a perfect fit for one of our setups, where current index re-open time is several minutes due to 2 a

Re: Best way to facets with value preprocessing (w/ docValues)

2015-07-10 Thread Konstantin Gribov
Hello again. My phrase about TokenStream reuse was incorrect since it's reused even in TextField case, so Analyzer#createComponents() is called infrequently. But analysis itself takes some time (in case of StrField it's trivial, just calling `toInternal`). One suspicious moment is that solr.StrFi