Re: [HELP] Link your Apache Lucene Jira and GitHub account ids before Thursday August 4 midnight (in your local time)

2022-08-09 Thread Aditya Varun Chadha
Thank you!

On Sun 7. Aug 2022 at 07:57, Tomoko Uchida 
wrote:

> Understood. I added your account to the mapping:
>
> https://github.com/apache/lucene-jira-archive/commit/bbaf23ddc329470346546f2acac5b80eda503aca
> If you open issues or make comments in Jira before the issue migration,
> your contribution will be associated with your GH account.
>
> Tomoko
>
>
> 2022年8月7日(日) 14:41 Aditya Varun Chadha :
>
> > Thanks Tomoko,
> > There is no activity in JIRA from me as far as I can recall. This is the
> > correct and only account though.
> >
> > On Sun 7. Aug 2022 at 05:50, Tomoko Uchida  >
> > wrote:
> >
> > > Hi Aditya,
> > > I found a Jira user "adichad" but this account has no activities in
> > Lucene
> > > Jira. See:
> > > https://issues.apache.org/jira/secure/ViewProfile.jspa?name=adichad
> > >
> > > I wonder if you have multiple Jira accounts and you use another account
> > for
> > > Lucene? For example, there is a Jira user "abakle
> > > <https://issues.apache.org/jira/secure/ViewProfile.jspa?name=abakle>"
> -
> > > this has activities in LUCENE.
> > >
> > > Tomoko
> > >
> > >
> > > 2022年8月7日(日) 5:56 Aditya Varun Chadha :
> > >
> > > > JIRA: adichad
> > > > GitHub: adichad
> > > >
> > > > Thank you!
> > > >
> > > > On Sat 6. Aug 2022 at 20:37, Glen Newton 
> > wrote:
> > > >
> > > > > jira: gnewton
> > > > > github: gnewton  (github.com/gnewton)
> > > > >
> > > > > Thanks,
> > > > > Glen
> > > > >
> > > > >
> > > > >
> > > > > On Sat, 6 Aug 2022 at 14:11, Tomoko Uchida <
> > > tomoko.uchida.1...@gmail.com
> > > > >
> > > > > wrote:
> > > > >
> > > > > > Hi everyone.
> > > > > >
> > > > > > I wanted to let you know that we'll extend the deadline until the
> > > date
> > > > > the
> > > > > > migration is started (the date is not fixed yet).
> > > > > > Please let us know your Jira/Github usernames if you don't see
> > > > mapping(s)
> > > > > > for your account in this file:
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> https://github.com/apache/lucene-jira-archive/blob/main/migration/mappings-data/account-map.csv.20220722.verified
> > > > > >
> > > > > > Tomoko
> > > > > >
> > > > > >
> > > > > > 2022年8月7日(日) 1:36 Baris Kazar :
> > > > > >
> > > > > > > Thank You Thank You
> > > > > > > Best regards
> > > > > > > 
> > > > > > > From: Michael McCandless 
> > > > > > > Sent: Saturday, August 6, 2022 11:29:25 AM
> > > > > > > To: Baris Kazar 
> > > > > > > Cc: java-user@lucene.apache.org 
> > > > > > > Subject: Re: [HELP] Link your Apache Lucene Jira and GitHub
> > account
> > > > ids
> > > > > > > before Thursday August 4 midnight (in your local time)
> > > > > > >
> > > > > > > OK done:
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> https://github.com/apache/lucene-jira-archive/commit/13fa4cb46a1a6d609448240e4f66c263da8b3fd1
> > > > > > > <
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> https://urldefense.com/v3/__https://github.com/apache/lucene-jira-archive/commit/13fa4cb46a1a6d609448240e4f66c263da8b3fd1__;!!ACWV5N9M2RV99hQ!OJffdSKrjdfY7VYGcAVGsx4rKHPICvgac4eOcXOf1fnT7u9fJ2RSu9toYPgowHx72UC33Ixg1s1BLKR6GBFgnw$
> > > > > > > >
> > > > > > >
> > > > > > > Mike McCandless
> > > > > > >
> > > > > > > http://blog.mikemccandless.com<
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> https://urldefense.com/v3/__http://blog.mikemccandless.com__;!!ACWV5N9M2RV99hQ!OJffdSKrjdfY7VYGcAVGsx4rKHPICvgac4eOcXOf1fnT7u9fJ2RSu9toYPgowHx72UC33Ixg1s1BLKQULWvYcw$
> > &

Re: [HELP] Link your Apache Lucene Jira and GitHub account ids before Thursday August 4 midnight (in your local time)

2022-08-06 Thread Aditya Varun Chadha
Thanks Tomoko,
There is no activity in JIRA from me as far as I can recall. This is the
correct and only account though.

On Sun 7. Aug 2022 at 05:50, Tomoko Uchida 
wrote:

> Hi Aditya,
> I found a Jira user "adichad" but this account has no activities in Lucene
> Jira. See:
> https://issues.apache.org/jira/secure/ViewProfile.jspa?name=adichad
>
> I wonder if you have multiple Jira accounts and you use another account for
> Lucene? For example, there is a Jira user "abakle
> <https://issues.apache.org/jira/secure/ViewProfile.jspa?name=abakle>" -
> this has activities in LUCENE.
>
> Tomoko
>
>
> 2022年8月7日(日) 5:56 Aditya Varun Chadha :
>
> > JIRA: adichad
> > GitHub: adichad
> >
> > Thank you!
> >
> > On Sat 6. Aug 2022 at 20:37, Glen Newton  wrote:
> >
> > > jira: gnewton
> > > github: gnewton  (github.com/gnewton)
> > >
> > > Thanks,
> > > Glen
> > >
> > >
> > >
> > > On Sat, 6 Aug 2022 at 14:11, Tomoko Uchida <
> tomoko.uchida.1...@gmail.com
> > >
> > > wrote:
> > >
> > > > Hi everyone.
> > > >
> > > > I wanted to let you know that we'll extend the deadline until the
> date
> > > the
> > > > migration is started (the date is not fixed yet).
> > > > Please let us know your Jira/Github usernames if you don't see
> > mapping(s)
> > > > for your account in this file:
> > > >
> > > >
> > >
> >
> https://github.com/apache/lucene-jira-archive/blob/main/migration/mappings-data/account-map.csv.20220722.verified
> > > >
> > > > Tomoko
> > > >
> > > >
> > > > 2022年8月7日(日) 1:36 Baris Kazar :
> > > >
> > > > > Thank You Thank You
> > > > > Best regards
> > > > > 
> > > > > From: Michael McCandless 
> > > > > Sent: Saturday, August 6, 2022 11:29:25 AM
> > > > > To: Baris Kazar 
> > > > > Cc: java-user@lucene.apache.org 
> > > > > Subject: Re: [HELP] Link your Apache Lucene Jira and GitHub account
> > ids
> > > > > before Thursday August 4 midnight (in your local time)
> > > > >
> > > > > OK done:
> > > > >
> > > >
> > >
> >
> https://github.com/apache/lucene-jira-archive/commit/13fa4cb46a1a6d609448240e4f66c263da8b3fd1
> > > > > <
> > > > >
> > > >
> > >
> >
> https://urldefense.com/v3/__https://github.com/apache/lucene-jira-archive/commit/13fa4cb46a1a6d609448240e4f66c263da8b3fd1__;!!ACWV5N9M2RV99hQ!OJffdSKrjdfY7VYGcAVGsx4rKHPICvgac4eOcXOf1fnT7u9fJ2RSu9toYPgowHx72UC33Ixg1s1BLKR6GBFgnw$
> > > > > >
> > > > >
> > > > > Mike McCandless
> > > > >
> > > > > http://blog.mikemccandless.com<
> > > > >
> > > >
> > >
> >
> https://urldefense.com/v3/__http://blog.mikemccandless.com__;!!ACWV5N9M2RV99hQ!OJffdSKrjdfY7VYGcAVGsx4rKHPICvgac4eOcXOf1fnT7u9fJ2RSu9toYPgowHx72UC33Ixg1s1BLKQULWvYcw$
> > > > > >
> > > > >
> > > > >
> > > > > On Sat, Aug 6, 2022 at 10:29 AM Baris Kazar <
> baris.ka...@oracle.com
> > > > > <mailto:baris.ka...@oracle.com>> wrote:
> > > > > I think so.
> > > > > Best regards
> > > > > 
> > > > > From: Michael McCandless  > > > > luc...@mikemccandless.com>>
> > > > > Sent: Saturday, August 6, 2022 10:12 AM
> > > > > To: java-user@lucene.apache.org<mailto:java-user@lucene.apache.org
> >
> > <
> > > > > java-user@lucene.apache.org<mailto:java-user@lucene.apache.org>>
> > > > > Cc: Baris Kazar  > baris.ka...@oracle.com
> > > >>
> > > > > Subject: Re: [HELP] Link your Apache Lucene Jira and GitHub account
> > ids
> > > > > before Thursday August 4 midnight (in your local time)
> > > > >
> > > > > Thanks Baris,
> > > > >
> > > > > And your Jira ID is bkazar right?
> > > > >
> > > > > Mike
> > > > >
> > > > > On Sat, Aug 6, 2022 at 10:05 AM Baris Kazar <
> baris.ka...@oracle.com
> > > > > <mailto:baris.ka...@oracle.com>> wrote:
> > > > > My github username is bmk

Re: [HELP] Link your Apache Lucene Jira and GitHub account ids before Thursday August 4 midnight (in your local time)

2022-08-06 Thread Aditya Varun Chadha
JIRA: adichad
GitHub: adichad

Thank you!

On Sat 6. Aug 2022 at 20:37, Glen Newton  wrote:

> jira: gnewton
> github: gnewton  (github.com/gnewton)
>
> Thanks,
> Glen
>
>
>
> On Sat, 6 Aug 2022 at 14:11, Tomoko Uchida 
> wrote:
>
> > Hi everyone.
> >
> > I wanted to let you know that we'll extend the deadline until the date
> the
> > migration is started (the date is not fixed yet).
> > Please let us know your Jira/Github usernames if you don't see mapping(s)
> > for your account in this file:
> >
> >
> https://github.com/apache/lucene-jira-archive/blob/main/migration/mappings-data/account-map.csv.20220722.verified
> >
> > Tomoko
> >
> >
> > 2022年8月7日(日) 1:36 Baris Kazar :
> >
> > > Thank You Thank You
> > > Best regards
> > > 
> > > From: Michael McCandless 
> > > Sent: Saturday, August 6, 2022 11:29:25 AM
> > > To: Baris Kazar 
> > > Cc: java-user@lucene.apache.org 
> > > Subject: Re: [HELP] Link your Apache Lucene Jira and GitHub account ids
> > > before Thursday August 4 midnight (in your local time)
> > >
> > > OK done:
> > >
> >
> https://github.com/apache/lucene-jira-archive/commit/13fa4cb46a1a6d609448240e4f66c263da8b3fd1
> > > <
> > >
> >
> https://urldefense.com/v3/__https://github.com/apache/lucene-jira-archive/commit/13fa4cb46a1a6d609448240e4f66c263da8b3fd1__;!!ACWV5N9M2RV99hQ!OJffdSKrjdfY7VYGcAVGsx4rKHPICvgac4eOcXOf1fnT7u9fJ2RSu9toYPgowHx72UC33Ixg1s1BLKR6GBFgnw$
> > > >
> > >
> > > Mike McCandless
> > >
> > > http://blog.mikemccandless.com<
> > >
> >
> https://urldefense.com/v3/__http://blog.mikemccandless.com__;!!ACWV5N9M2RV99hQ!OJffdSKrjdfY7VYGcAVGsx4rKHPICvgac4eOcXOf1fnT7u9fJ2RSu9toYPgowHx72UC33Ixg1s1BLKQULWvYcw$
> > > >
> > >
> > >
> > > On Sat, Aug 6, 2022 at 10:29 AM Baris Kazar  > > > wrote:
> > > I think so.
> > > Best regards
> > > 
> > > From: Michael McCandless  > > luc...@mikemccandless.com>>
> > > Sent: Saturday, August 6, 2022 10:12 AM
> > > To: java-user@lucene.apache.org <
> > > java-user@lucene.apache.org>
> > > Cc: Baris Kazar mailto:baris.ka...@oracle.com
> >>
> > > Subject: Re: [HELP] Link your Apache Lucene Jira and GitHub account ids
> > > before Thursday August 4 midnight (in your local time)
> > >
> > > Thanks Baris,
> > >
> > > And your Jira ID is bkazar right?
> > >
> > > Mike
> > >
> > > On Sat, Aug 6, 2022 at 10:05 AM Baris Kazar  > > > wrote:
> > > My github username is bmkazar
> > > can You please register me?
> > > Best regards
> > > 
> > > From: Michael McCandless  > > luc...@mikemccandless.com>>
> > > Sent: Saturday, August 6, 2022 6:05:51 AM
> > > To: d...@lucene.apache.org <
> > > d...@lucene.apache.org>
> > > Cc: Lucene Users  > > java-user@lucene.apache.org>>; java-dev  > > >
> > > Subject: Re: [HELP] Link your Apache Lucene Jira and GitHub account ids
> > > before Thursday August 4 midnight (in your local time)
> > >
> > > Hi Adam, I added your linked accounts here:
> > >
> > >
> >
> https://urldefense.com/v3/__https://github.com/apache/lucene-jira-archive/commit/c228cb184c073f4b96cd68d45a000cf390455b7c__;!!ACWV5N9M2RV99hQ!KNwyR7RuqeuKpyzEemagEZzGRGtdqjpE-OWaDfjjyZVHJ-zgsGLyYJhZ7ZWJCI1NrWR6H4DYdMbB8nLk1DO04g$
> > >
> > > And Tomoko added Rushabh's linked accounts here:
> > >
> > >
> > >
> >
> https://urldefense.com/v3/__https://github.com/apache/lucene-jira-archive/commit/6f9501ec68792c1b287e93770f7a9dfd351b86fb__;!!ACWV5N9M2RV99hQ!KNwyR7RuqeuKpyzEemagEZzGRGtdqjpE-OWaDfjjyZVHJ-zgsGLyYJhZ7ZWJCI1NrWR6H4DYdMbB8nITwUFX0A$
> > >
> > > Keep the linked accounts coming!
> > >
> > > Mike
> > >
> > > On Thu, Aug 4, 2022 at 7:02 PM Rushabh Shah
> > > mailto:rushabh.s...@salesforce.com
> > >.invalid>
> > > wrote:
> > >
> > > > Hi,
> > > > My mapping is:
> > > > JiraName,GitHubAccount,JiraDispName
> > > > shahrs87, shahrs87, Rushabh Shah
> > > >
> > > > Thank you Tomoko and Mike for all of your hard work.
> > > >
> > > >
> > > >
> > > >
> > > > On Sun, Jul 31, 2022 at 3:08 AM Michael McCandless <
> > > > luc...@mikemccandless.com> wrote:
> > > >
> > > >> Hello Lucene users, contributors and developers,
> > > >>
> > > >> If you have used Lucene's Jira and you have a GitHub account as
> well,
> > > >> please check whether your user id mapping is in this file:
> > > >>
> > >
> >
> https://urldefense.com/v3/__https://github.com/apache/lucene-jira-archive/blob/main/migration/mappings-data/account-map.csv.20220722.verified__;!!ACWV5N9M2RV99hQ!KNwyR7RuqeuKpyzEemagEZzGRGtdqjpE-OWaDfjjyZVHJ-zgsGLyYJhZ7ZWJCI1NrWR6H4DYdMbB8nLjA_KarQ$
> > > >>
> > > >> If not, please reply to this email and we will try to add you.
> > > >>
> > > >> Please forward this email to anyone you know might be impacted and
> who
> > > >> might not 

Re: How to ignore a match if a given keyword is before/after another given keyword?

2021-04-14 Thread Aditya Varun Chadha
maybe you want (abstractly):

bool(must(term("f", "positive"), mustNot(phrase("f", "negative positive",
slop=1)))

On Thu, Apr 15, 2021 at 7:27 AM Jean Morissette 
wrote:

> Hi all,
>
> Does someone know if it's possible to search documents containing a given
> keyword only if this keyword is not followed or preceded or another given
> keyword?
>
> Thanks,
> Jean
>


-- 
Aditya


Re: Storing Json field in Lucene

2020-04-21 Thread Aditya Varun Chadha
during indexing, you can add the json string to a stored-only field (not
indexed, not doc-values) to each document.

at query time you can then retrieve the json field's value only for the top
K results. this field should not be used for matching or scoring.

the point is that if you do ever want to Lucene for its strengths
(text/multidimensional indexing and search), you should extract those
values from your json document (like you extract Type and id, i guess) and
_also_ add them as separate Fields with indexing/doc-values enabled,
depending on the use-cases for that field.

On Wed, Apr 22, 2020 at 7:01 AM ganesh m 
wrote:

> Hi
> I am currently storing indexed field and stored field in separate
> database. In stored field database, Document Id, Type and Json string of
> metadata will be stored. Basically i am using it as key-value pair
> database. For every document to be indexed, we have three different
> metadata structure to be stored. That is the reason, we have Document Id
> and Type, so that we can query and retrieve stored field based on type. We
> have to depend on Lucene as we don't have any other database to store data.
>
> Is it good idea to store complete Json as string to Lucene DB. If we store
> as separate fields then we have around 30 fields. There will be 30 seeks to
> get complete stored fields. If we store it as Json then it is a one seek to
> retrieve the data. Since it is Json, field name and its value will be
> stored for every record and it may bloat index size.
>
> Could you guide me what is the better approach. To store as Json or as
> individual fields.
>
> RegardsGanesh
>


-- 
Aditya Varun Chadha | http://www.adichad.net | +49 (0) 152 25914008 (M)


Re: Use custom score in ConstantScoreQuery

2019-12-09 Thread Aditya Varun Chadha
By wrapping the constant score query inside a BoostQuery?

That’s how elasticsearch handles boosts on arbitrary queries, for example.

On Mon 9. Dec 2019 at 10:42, Stamatis Zampetakis  wrote:

> Thanks for you reply Adrien!
> Can you clarify what is the second way?
> At the moment I haven't found a way (apart from creating my own Query
> classes) to say that a query will always return a score of 0.5 for each
> document.
>
> On Mon, Dec 9, 2019 at 8:16 AM Adrien Grand  wrote:
>
> > Hi Stamatis,
> >
> > I personally like the current way things work. If we added the ability
> > to set a custom score on ConstantScoreQuery, then we'd end up with two
> > ways to do the same thing, which I like to avoid whenever possible.
> >
> > On Sun, Dec 8, 2019 at 10:07 PM Stamatis Zampetakis 
> > wrote:
> > >
> > > Small reminder. Any input on this?
> > >
> > > Thanks,
> > > Stamatis
> > >
> > > On Mon, Dec 2, 2019 at 12:10 PM Stamatis Zampetakis  >
> > > wrote:
> > >
> > > > Hi all,
> > > >
> > > > Currently ConstantScoreQuery [1] returns a constant score equal to 1
> > for
> > > > every document that matches the query.
> > > >
> > > > I would like to use the ConstantScoreQuery but with a different score
> > > > value that I can pass explicitly (via the constructor for instance).
> > > >
> > > > This change may also benefit some other parts of Lucene where a
> > > > ConstantScoreQuery is wrapped around a BoostQuery simply for
> returning
> > a
> > > > score of zero [2][3].
> > > >
> > > > Does this change make sense? Shall I create a JIRA for it?
> > > >
> > > > Best,
> > > > Stamatis
> > > >
> > > > [1]
> > > >
> >
> https://github.com/apache/lucene-solr/blob/master/lucene/core/src/java/org/apache/lucene/search/ConstantScoreQuery.java
> > > > [2]
> > > >
> >
> https://github.com/apache/lucene-solr/blob/1d238c844e45f088a942aec14750c186c7a66d92/lucene/core/src/java/org/apache/lucene/search/BooleanQuery.java#L253
> > > > [3]
> > > >
> >
> https://github.com/apache/lucene-solr/blob/1d238c844e45f088a942aec14750c186c7a66d92/lucene/core/src/java/org/apache/lucene/search/BoostQuery.java#L97
> > > >
> >
> >
> >
> > --
> > Adrien
> >
> > -
> > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> > For additional commands, e-mail: java-user-h...@lucene.apache.org
> >
> >
>
-- 
Aditya Varun Chadha | http://www.adichad.com | +49 (0) 152 25914008 (M)