ompareTo(bookCategoryPath)==0){
> document.score = 1
> }else if(queryCategoryPath.compareTo(bookCategoryPath)==1){
> document.score = 0.9
> }else if(queryCategoryPath.compareTo(bookCategoryPath)==2){
> document.score = 0.8
> } and so on.
>
>
>
>
>
> --
>
--
View this message in context:
http://lucene.472066.n3.nabble.com/Lucene-Hierarchial-Taxonomy-Search-tp4107100p4107226.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: java-user-unsu
or partially (with a defined depth
> threshold) and give them a different score in function of the match degree.
>
> E.g.: query "book_category=/novel/comedy" and "depth_threshold=1" must
> return books with book_category=/novel/comedy (score=100%), /novel and
> /n
s with book_category=/novel/comedy (score=100%), /novel and
/novel/comedy/new (score < 100%).
I tried the TopScoreDocCollector in the search, but it returns the book
which book_category at least contains the query category, and gives them the
same score.
How can i obtain this search function th