Thanks Ian, Yup that would do the trick for me, it seems.
Also I would like to say that the following also worked, I only realized it after I went through the scores coming from my results step by step: KeywordAnalyzer + Index.ANALYZED (index-time norms were present) Cheers! On Thu, Nov 18, 2010 at 4:10 AM, Ian Lea <ian....@gmail.com> wrote: > Have you tried explicitly setting norms on/off the way you want with > Field.setOmitNorms(boolean)? > > > -- > Ian. > > On Thu, Nov 18, 2010 at 12:54 AM, Pulkit Singhal > <pulkitsing...@gmail.com> wrote: >> Based on my experimentation and what it says in the Lucene 2nd edition book: >> "Using a KeywordAnalyzer on special fields during indexing would >> eliminate the use of Index.NOT_ANALYZED_NO_NORMS during indexing and >> replace it with Index.ANALYZED." >> >> I guess that there is no way to use KeywordAnalyzer during indexing >> and get NORMS. >> >> So much for being elegant, if someone has some way to make it happen, >> please let me know. >> >> Thanks. >> >> On Wed, Nov 17, 2010 at 7:09 PM, Pulkit Singhal <pulkitsing...@gmail.com> >> wrote: >>> Greetings! >>> >>> When using KeywordAnalyzer for indexing a field which has the >>> Field.Index.ANALYZED option selected. >>> >>> Does the use of KeywordAnalyzer automatically mean that there is no >>> point in trying to set the index-time boosts on that field in the >>> document because it will be treated as a full token but without any >>> NORMS? >>> >>> Or does the fact that I said used ANALYZED instead of >>> ANALYZED_NO_NORMS make some difference and I can get the index-time >>> boosts information stored the way I want?\ >>> Even though I'm using a KeywordAnalyzer ... >>> >>> Thanks for reading through my confusing question :) >>> >>> - Pulkit >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org >> For additional commands, e-mail: java-user-h...@lucene.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org