Hi,

I am currently in the process of moving from Lucene 4.x to 5.x. As far
as I understand things, a filter like

  filter = new FieldValueFilter("name", false);

translates to

  BooleanQuery filter = new BooleanQuery();
  filter.add(new FieldValueQuery("name"), Occur.FILTER);

with the additional caveat that the field "name" now also needs to be
indexed as SortedDocValuesField, as otherwise the FieldValueQuery won't
work. Am I correct? What are the implications of this change, both in
term of search performance and index size (as I am adding more "fields")?

Best wishes,

Andreas

-- 
Codetrails GmbH
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Phone: +49-6151-276-7092
Mobile: +49-170-811-3791
http://www.codetrails.com/

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to