Re: Payload and Similarity Function: Always same value

2014-10-30 Thread Erick Erickson
Ralf: Here's an end-to-end Payloads example you can use to compare, although it sounds like you've already figured out your immediate problem.. https://lucidworks.com/blog/end-to-end-payload-example-in-solr/ Best, Erick On Thu, Oct 30, 2014 at 1:24 PM, Ralf Bierig wrote: > Found it! I used ano

Re: Payload and Similarity Function: Always same value

2014-10-30 Thread Ralf Bierig
Found it! I used another class that was was still using old code. My bad! Thanks anyway, Ralf On 30.10.2014 20:53, Michael Sokolov wrote: That's a lot of code to eyeball. Have you tried printing out the input data as you are indexing it (just at doc.add)? I am guessing there is some simple va

Re: Payload and Similarity Function: Always same value

2014-10-30 Thread Ralf Bierig
Found it! I used another class that was was still using old code. My bad! Thanks anyway, Ralf On 30.10.2014 20:53, Michael Sokolov wrote: That's a lot of code to eyeball. Have you tried printing out the input data as you are indexing it (just at doc.add)? I am guessing there is some simple va

Re: Payload and Similarity Function: Always same value

2014-10-30 Thread Michael Sokolov
That's a lot of code to eyeball. Have you tried printing out the input data as you are indexing it (just at doc.add)? I am guessing there is some simple variable aliasing issue that I don't see at a glance ... -Mike On 10/30/14 2:03 PM, Ralf Bierig wrote: I want to implement a Lucene Indexer

Payload and Similarity Function: Always same value

2014-10-30 Thread Ralf Bierig
I want to implement a Lucene Indexer/Searcher that uses the new Payload feature to add meta information to tokens. I specifically add weights (i.e. 0-100) to conceptual tags in order to use them to overwrite the standard Lucene TF-IDF weighting. I am puzzled by the behaviour of this and I belie

Re: similarity function

2009-11-08 Thread Chris Hostetter
: "how do i set the score of each document result to be the score of that : of the field that best matches the search terms"? you'll want something like this psuedo code... DisjunctionMaxQuery dq = new DMQ foreach fieldname in list_of_fields { BooleanQuery bq = new BQ foreach word in l

Re: similarity function

2009-10-28 Thread Joel Halbert
I suppose this could be summarised as: "how do i set the score of each document result to be the score of that of the field that best matches the search terms"? -Original Message- From: Joel Halbert Reply-To: java-user@lucene.apache.org To: Lucene Users Subject: similarit

similarity function

2009-10-28 Thread Joel Halbert
Hi, Given a query with multiple terms, e.g. fish oil, and searching across multiple fields e.g. query= fieldA:fish fieldA:oil fieldB:fish fieldB:oil etc... I don't want to give any more weight to documents that match the same word multiple times (either in the same, or different fields). I am

Re: similarity function

2009-03-05 Thread patrick o'leary
y work, I have read an article stating that " Answer type can be >> automatically constructed by Indexing Different Questions and Answer >> types. Later, when an unseen question apears, answer type for this >> question will be found with the help of 'similarity function'

Re: similarity function

2009-03-05 Thread Grant Ingersoll
le stating that " Answer type can be automatically constructed by Indexing Different Questions and Answer types. Later, when an unseen question apears, answer type for this question will be found with the help of 'similarity function' computation" so I am clear with the arguemen

Re: similarity function

2009-03-05 Thread Vasudevan Comandur
Mohammed wrote: > For my work, I have read an article stating that " Answer type can be > automatically constructed by Indexing Different Questions and Answer > types. Later, when an unseen question apears, answer type for this > question will be found with the help of &#x

similarity function

2009-03-05 Thread Seid Mohammed
For my work, I have read an article stating that " Answer type can be automatically constructed by Indexing Different Questions and Answer types. Later, when an unseen question apears, answer type for this question will be found with the help of 'similarity function' computation&

Re: How to change the similarity function of lucene

2007-09-28 Thread Ariel
Sorry the delay. But, what I want to do is to change the terms weigth, I don´t want that terms weight be the frecuency the term appear in the document intead of that I want it to be another special measure and with that change the similarity function. I don´t know how to change the terms weight in

Re: How to change the similarity function of lucene

2007-09-24 Thread Grant Ingersoll
other words, it can be as complex as you want it to be... -Grant On Sep 24, 2007, at 5:24 PM, Ariel wrote: Hi every body: I would like to know how to change the similarity function of lucene to extends the posibilities of searching and make it more powefull. Have somebody made this before

How to change the similarity function of lucene

2007-09-24 Thread Ariel
Hi every body: I would like to know how to change the similarity function of lucene to extends the posibilities of searching and make it more powefull. Have somebody made this before ? Could you help me please ? I don't know how complex might be this. I hope you can help me. Greetings Ariel