lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From A Z <>
Subject weightage of each word according to precedence in document
Date Tue, 24 Jan 2012 17:12:37 GMT

how can we assign custom score for each token/word.

For Ex

I have document

1    pqrst uvwx abcd

2    abcd pqrst uvwx

3    pqrst uvwx lmn

4    pqrst uvwx lmn abcd

5    pqrst abcd uvwx lmn

*Now i m searching data ---> abcd pqrst*

So it should give more weightage score to 2nd document then 1st document

So i want is

*document 1 :---*    *pqrst *has more *weight * then   *uvwx *word and *then
 abcd *word

*document 2* *:---*    *abcd *has more *weight * then   *pqrst*  word
and *then  uvwx

Thanx you

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message