lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AHMET ARSLAN <iori...@yahoo.com>
Subject Re: Lucene search in URL
Date Sun, 20 Sep 2009 23:12:29 GMT
> Thanks for all the Help.
> 
> I've now implemented a modified Version of Ahmet Arslan's
> Idea and it works.

Great to hear that! 

Doing query iteration programatically will be faster than making it with ShingleFilter.

Since you don't care about scores, you can enhance your search time complexity. You need only
Boolean Retrieval (true or false) so can omit term freq. and length norm. and index time boosting
etc in your fields.

Field.setOmitNorms(true)
Field.setOmitTermFreqAndPositions(true) 
Using Field.Index.ANALYZED_NO_NORMS in constructor.

Secondly there is a discussion about disabling score calculation completely. It is stated
that:

"As of 2.9 (not yet released) the new Collector API allows you to skip
scoring entirely and just collect the doc IDs matching the query." [1].

If you made these modifications, your search will be even faster and storage space - required
in the index - will decrease.

[1] http://osdir.com/ml/java-user.lucene.apache.org/2009-07/msg00073.html


      

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


Mime
View raw message