Siraj Haider wrote:

Yonik Seeley wrote:
On Wed, Mar 11, 2009 at 2:35 PM, Michael McCandless
<luc...@mikemccandless.com> wrote:

This is expected: phrase searches will not work when you omitTf.


But why would a phrase query be created? The code given looks like it
should create a boolean query with two terms.

Of course, the given code also uses "" as the default field....


I used "SQL SERVER" just as an example, in order to make is simple. My
actual query is like this [S000:"SQL SERVER"] where S000 is the field.

OK, that query does create a PhraseQuery.

Is there anyway to selectively keep the position information and discard
other stuff like term frequency, pay load etc?

Payloads consume no space if you don't use them. Term frequency can't be separately turned off.

Other things to try:

- Turn off field storing (Field.Store.NO) and turn off term vectors (Field.TermVector.NO), if you haven't already.

- Disable norms saves a tiny amount of disk space, but you lose boosting.

  - Reduce the number of fields on each doc

  - Run optimize.

Mike

---------------------------------------------------------------------
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