hi folks, 
i am trying to give weights for sorting the results of the query... but a
little bit confused here... 


i wrote this:

vector = this.reader.getTermFreqVector(this.docId, "info");
                                        String[] queryWords = 
searchQuery.split(" ");
                                        for(int i = 0;i<queryWords.length;i++){
                                                int index = 
vector.indexOf(queryWords[i]);
                            infoDist += vector.getTermFrequencies()[index];

is this a good way for weigthing? 

-----
Zeki ama calismiyor... Calissa yapar...
--
View this message in context: 
http://lucene.472066.n3.nabble.com/weight-and-sorting-tp2946289p2946289.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to