lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashok Archunan <ashokarchunana...@gmail.com>
Subject Re: Scripting in lucene
Date Fri, 25 Jan 2019 15:43:46 GMT
Hi Adrien,

Using the Groovy script, we modified the existing data in the document from
the application server itself for our case, but we still work on one
particular case as I discussed before in which we need to retrieve
documents based on two indexed fields having same value. For instance,
consider the documents contain two fields "place" and "city" and the search
query is like retrieving documents if the fields ("place" and "city") have
same values. Is there any way for this case in lucene 4.10.4 ( as we are
using this version currently) ?

On Thu, Jan 10, 2019 at 9:00 AM Ashok Archunan <ashokarchunanaj07@gmail.com>
wrote:

> Thanks for your reply. Is there any way to work near to my data in lucene,
> we need to send piece of code to our lucene server from the application
> server and we will process the data with the retrieved store fields using
> that code. Our use cases will be 1. we want to change already existing
> data. 2. retrieve records for the our criteria. say if two fields has same
> value, then return in the result set.
>
> elastic search link for updating fields in a document using script tag :
> https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html
>
>
> On Thu 10 Jan, 2019, 06:59 Adrien Grand <jpountz@gmail.com wrote:
>
>> Hi Ashok,
>>
>> This isn't something that expressions can do, expressions have been
>> designed for sorting and scoring and can only manipulate numbers.
>>
>> On Mon, Jan 7, 2019 at 1:45 AM Ashok Archunan
>> <ashokarchunanaj07@gmail.com> wrote:
>> >
>> > Dear team,
>> > I have query related to scripting in lucene. Consider a scenario where I
>> > need to create a new field(Full_Name) by means of merging two existing
>> > field (First_name + Last_name = Full_Name) and also appending new value
>> in
>> > a existing field. These things can be achieved via Scripting language
>> using
>> > Elastic search (Update API). But the real case is, can we do the same in
>> > lucene using any external scripting package or can we achieve these
>> using
>> > Expression class in lucene?. Please let me know once you received the
>> mail.
>> >
>> > Thanks and Regards,
>> > Ashok Archunan.
>>
>>
>>
>> --
>> Adrien
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message