lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Elaine Li <elaine.bing...@gmail.com>
Subject Re: search by some functionality
Date Mon, 05 Oct 2009 14:57:10 GMT
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 now.

I see customized function query and customized request handler are two
options. I wish I can get more details about how to do that. I
appreciate if i can get some examples.

Thanks.

Elaine


On Mon, Oct 5, 2009 at 10:35 AM, Chantal Ackermann
<chantal.ackermann@btelligent.de> wrote:
> 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. 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 aligned in the table,
>> then it is a hit. Otherwise, it should not return.
>>
>> Hope I clarified what i need to achieve. Your help is greatly appreciated!
>>
>> Thanks!
>>
>> Elaine
>>
>> On Mon, Oct 5, 2009 at 5:57 AM, Shalin Shekhar Mangar
>> <shalinmangar@gmail.com> wrote:
>>>
>>> On Sat, Oct 3, 2009 at 1:16 AM, Elaine Li <elaine.bing.li@gmail.com>
>>> 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 determine if it is a hit.
>>>>
>>>> What can I do to implement this?
>>>>
>>> What exactly are you trying to achieve? What is the
>>> computation/comparison
>>> that you need to do?
>>>
>>> --
>>> Regards,
>>> Shalin Shekhar Mangar.
>>>
>

Mime
View raw message