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 <ashokarchunana...@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 <jpou...@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
>> <ashokarchunana...@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-unsubscr...@lucene.apache.org
>> For additional commands, e-mail: java-user-h...@lucene.apache.org
>>
>>

Reply via email to