Boost Document

2006-11-17 Thread John Pailet
Hello, I have a problem with the BOOST DOCUMENT method. When I have 2 documents that have exactly the same data, but different boost value. The order does not respect the boost value. It the following exemples, the first document of the search is the document with the lower boost value... is it

Re: Boost Document

2006-11-18 Thread John Pailet
Hi Chris, You are right !!! Here is the explain output: - DOC 222-home- 40960.0 = fieldWeight(WORD:home in 0), product of: 1.0 = tf(termFreq(WORD:home)=1) 1.0 = idf(docFreq=2) 40960.0 = fieldNorm(field=WORD, doc=0) - DOC 111-home- 40960.0 = fieldWeight(WORD:home in 1), pro

Sorting based on a selling rate

2006-08-28 Thread John Pailet
I want to implement a specific search based on a selling rate. Let me explain this: I have a book collection in my store. I index my books like that: - One Lucene Document by book - Two Lucene Fields in the document - TITLE OF THE BOOK - KEYWORDS OF THE BOOK The keyword field i

Re: Sorting based on a selling rate

2006-08-29 Thread John Pailet
Hello, Ok, for the sort object, but my problem is I don't know haox to retrieve (or store) information of the sell rate of the products (the sell rate deponds on the QUERY ! The sort is different for each queries.) I imagine to connect to the DB and get sell rate of products for this specific qu

Re: Sorting based on a selling rate

2006-08-30 Thread John Pailet
Yes, that is exactly what I want to do ! My external system gives me sell rate/Top N Selling books matching the user terms (query) I don't know what is the best way: Storing sell rate into lucene Fields of the documents... (multiple combination) and sort by this field, or doing something like

Re: Sorting based on a selling rate

2006-08-31 Thread John Pailet
Putting selling rate in the index is OK for me, I also think that is a good idea. The problem is: I don't know how to store the sell rate of the product that depends on a specific query Can you please give me your idea about how to store it in the Lucene document ? (field/value) Thank you very