Re: search by some functionality

2009-10-13 Thread Chris Hostetter
Actually, I forgot that the new frange query parser can let you filter on the output of a function... http://www.lucidimagination.com/blog/tag/frange/ : : Maybe I'm missing something, but function queries aren't involved in : : determining whether a document matches or not, only its score. How

Re: search by some functionality

2009-10-12 Thread Chris Hostetter
: Maybe I'm missing something, but function queries aren't involved in : determining whether a document matches or not, only its score. How is a a : custom function / value-source going to filter? it's not ... i didn't realize that was the context of the question, i was just answering the speci

Re: search by some functionality

2009-10-06 Thread David Smiley @MITRE.org
Maybe I'm missing something, but function queries aren't involved in determining whether a document matches or not, only its score. How is a a custom function / value-source going to filter? ~ David Smiley hossman wrote: > > > : I read about this chapter before. It did not mention how to cre

Re: search by some functionality

2009-10-06 Thread Chris Hostetter
: I read about this chapter before. It did not mention how to create my : own customized function. : Can you point me to some instructions? The first step is to figure out how you can code your custom functionality as an extension of the ValueSource class... http://lucene.apache.org/solr/api/or

Re: search by some functionality

2009-10-06 Thread Sandeep Tagore
Hi Elaine, You can implement a function query in Solr in two ways: 1. Using Dismax request handler (with bf parameter). 2. Using the standard request handler (with _val_ field). I recommend the first option. Sandeep Elaine Li wrote: > > Hi Sandeep, > > I read about this chapter before. It

Re: search by some functionality

2009-10-05 Thread Elaine Li
Hi Chantal, I thought about that - taking care of the comparison at the index time. But the user's input scenarios are countless. That method will not cover all the cases. Doing comparison on the fly is better. I am just confused which way to go since I have not done much customization of solr by

Re: search by some functionality

2009-10-05 Thread Elaine Li
Hi Sandeep, I read about this chapter before. It did not mention how to create my own customized function. Can you point me to some instructions? Thanks. Elaine On Mon, Oct 5, 2009 at 10:15 AM, Sandeep Tagore wrote: > > Hi Elaine, > You can make use of  http://wiki.apache.org/solr/FunctionQuer

Re: search by some functionality

2009-10-05 Thread Chantal Ackermann
Hi Elaine, couldn't you do that comparison at index time and store the result in an additional field? At query time you could include that other field as condition. Cheers, Chantal Elaine Li schrieb: Hi Shalin, Thanks for your attention. I am implementing a language translation search. Th

Re: search by some functionality

2009-10-05 Thread Sandeep Tagore
Hi Elaine, You can make use of http://wiki.apache.org/solr/FunctionQuery Function Query to achieve this. You can do the computations in your customized function to determine whether it is a hit or not. Sandeep - Sandeep Tagore -- View this message in context: http://www.nabble.com/searc

Re: search by some functionality

2009-10-05 Thread Elaine Li
Hi Shalin, Thanks for your attention. I am implementing a language translation search. The field1 and field2 are two language's sentence pair. field3 is a table of indexes of words in field1 and field2. The table was created by some independent algorithm. If string1 and string2 can be found align

Re: search by some functionality

2009-10-05 Thread Shalin Shekhar Mangar
On Sat, Oct 3, 2009 at 1:16 AM, Elaine Li wrote: > Hi, > > My doc has three fields, say field1, field2, field3. > > My search would be q=field1:string1 && field2:string2. I also need to > do some computation and comparison of the string1 and string2 with the > contents in field3 and then determin