[prev in list] [next in list] [prev in thread] [next in thread] 

List:       solr-dev
Subject:    Re: issue with Lucene UpdateDocument
From:       Jan_Høydahl <jan.asf () cominvent ! com>
Date:       2020-02-18 11:58:57
Message-ID: 51DDA59C-3C38-470F-8913-5B1F2AD732D9 () cominvent ! com
[Download RAW message or body]

Hi

You have reached the mailing list for product development. Please re-send your email \
to java-user@lucene.apache.org instead, which is intended for user questions.

Jan

> 18. feb. 2020 kl. 12:24 skrev Jyothsna Bavisetti <jyothsna.bavisetti@oracle.com>:
> 
> HI Team,
> 
> 
> 1.We Upgraded Lucene 4.6 to 8+, After upgrading we are facing issue with \
> UpdateDocument API. We are using UpdateDocument for editing existing records and \
> adding new records. 2.Adding a new record to the index file is working fine.
> 3.When we are trying to edit one of record from the list of records, it is deleting \
> a specific record from the index file and adding new value (edited value)to the \
> first record. 4.Same scenario when we are trying to update any record other than \
> the first record. But when we are updating the first record it is working fine. 
> Please though some suggestions to figure it out. Please let me know how to enable \
> logging for Lucene to debug the issue. 
> Thanks,
> Jyothsna
> From: Jan Høydahl <jan.asf@cominvent.com <mailto:jan.asf@cominvent.com>> 
> Sent: Monday, February 17, 2020 5:15 PM
> To: Lucene Dev <dev@lucene.apache.org <mailto:dev@lucene.apache.org>>
> Subject: SolrJ has 29 compile-time dependencies!
> 
> Hi
> 
> According to https://mvnrepository.com/artifact/org.apache.solr/solr-solrj/8.4.1 \
> <https://urldefense.com/v3/__https:/mvnrepository.com/artifact/org.apache.solr/solr- \
> solrj/8.4.1__;!!GqivPVa7Brio!KXfP-3nqKhTJ70Mp_Zbzm1rrbBJbV9DbTPCeWmcB7SJ71atVbuHNO4SCW_jwQ4fjYaDAGJk$> \
> SolrJ now has 29 compile-time dependencies. Those are the ones explicitly mentioned \
> in ivy.xml and I believe that the number would be even higher if we used transitive \
> dependencies. That means that if you want to include SolrJ in a small app for just \
> searching Solr, you get a ton of dependencies in your project that you may not need \
> and that increase the chance of collision with other libs in your all. 
> So I want to raise the question whether it is time to take some action here.
> 
> Otions may include:
> Get rid of unneeded deps
> Explicitly exclude deps from gradle build that we know we do not need
> Modularize SolrJ into a solrj-core and solrj-xxx, where solrj-core would be the \
> minimum anyone would need to do the basics Look into shading select libs that often \
> cause collisions 
> Let the discussion begin :)
> 
> Jan


[Attachment #3 (unknown)]

<html><head><meta http-equiv="Content-Type" content="text/html; \
charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
line-break: after-white-space;" class="">Hi<div class=""><br class=""></div><div \
class="">You have reached the mailing list for product development. Please re-send \
your email to&nbsp;<a href="mailto:java-user@lucene.apache.org" \
class="">java-user@lucene.apache.org</a> instead, which is intended for user \
questions.</div><div class=""><br class=""></div><div class="">Jan<br \
class=""><div><br class=""><blockquote type="cite" class=""><div class="">18. feb. \
2020 kl. 12:24 skrev Jyothsna Bavisetti &lt;<a \
href="mailto:jyothsna.bavisetti@oracle.com" \
class="">jyothsna.bavisetti@oracle.com</a>&gt;:</div><br \
class="Apple-interchange-newline"><div class=""><div class="WordSection1" \
style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; \
font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; \
letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; \
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; \
text-decoration: none;"><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; \
font-family: &quot;Times New Roman&quot;, serif;" class=""><span style="font-size: \
11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">HI \
Team,<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; \
font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;" class=""><span \
style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" \
class=""><o:p class="">&nbsp;</o:p></span></div><div style="margin: 0in 0in 0.0001pt; \
font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif; background-color: \
white; vertical-align: baseline;" class=""><span style="font-size: 10pt; font-family: \
inherit, serif; color: rgb(36, 39, 41);" class=""><o:p \
class="">&nbsp;</o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: \
12pt; font-family: &quot;Times New Roman&quot;, serif;" class=""><span \
style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" \
class="">1.We Upgraded Lucene 4.6 to 8+, After upgrading we are facing issue with \
UpdateDocument API. We are using UpdateDocument for editing existing records and \
adding new records.<o:p class=""></o:p></span></div><div style="margin: 0in 0in \
0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;" \
class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: \
rgb(31, 73, 125);" class="">2.Adding a new record to the index file is working \
fine.<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; \
font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;" class=""><span \
style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" \
class="">3.When we are trying to edit one of record from the list of records, it is \
deleting a specific record from the index file and adding new value (edited value)to \
the first record.<o:p class=""></o:p></span></div><div style="margin: 0in 0in \
0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;" \
class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: \
rgb(31, 73, 125);" class="">4.Same scenario when we are trying to update any record \
other than the first record. But when we are updating the first record it is working \
fine.<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; \
font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;" class=""><span \
style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" \
class=""><o:p class="">&nbsp;</o:p></span></div><div style="margin: 0in 0in 0.0001pt; \
font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;" class=""><span \
style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" \
class="">Please though some suggestions to figure it out. Please let me know how to \
enable logging for Lucene to debug the issue.<o:p class=""></o:p></span></div><div \
style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New \
Roman&quot;, serif;" class=""><span style="font-size: 11pt; font-family: Calibri, \
sans-serif; color: rgb(31, 73, 125);" class=""><o:p \
class="">&nbsp;</o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: \
12pt; font-family: &quot;Times New Roman&quot;, serif;" class=""><span \
style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" \
class="">Thanks,<o:p class=""></o:p></span></div><div style="margin: 0in 0in \
0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;" \
class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: \
rgb(31, 73, 125);" class="">Jyothsna<o:p class=""></o:p></span></div><div \
class=""><div style="border-style: solid none none; border-top-width: 1pt; \
border-top-color: rgb(225, 225, 225); padding: 3pt 0in 0in;" class=""><div \
style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New \
Roman&quot;, serif;" class=""><b class=""><span style="font-size: 11pt; font-family: \
Calibri, sans-serif;" class="">From:</span></b><span style="font-size: 11pt; \
font-family: Calibri, sans-serif;" class=""><span \
class="Apple-converted-space">&nbsp;</span>Jan Høydahl &lt;<a \
href="mailto:jan.asf@cominvent.com" style="color: purple; text-decoration: \
underline;" class="">jan.asf@cominvent.com</a>&gt;<span \
class="Apple-converted-space">&nbsp;</span><br class=""><b class="">Sent:</b><span \
class="Apple-converted-space">&nbsp;</span>Monday, February 17, 2020 5:15 PM<br \
class=""><b class="">To:</b><span class="Apple-converted-space">&nbsp;</span>Lucene \
Dev &lt;<a href="mailto:dev@lucene.apache.org" style="color: purple; text-decoration: \
underline;" class="">dev@lucene.apache.org</a>&gt;<br class=""><b \
class="">Subject:</b><span class="Apple-converted-space">&nbsp;</span>SolrJ has 29 \
compile-time dependencies!<o:p class=""></o:p></span></div></div></div><div \
style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New \
Roman&quot;, serif;" class=""><o:p class="">&nbsp;</o:p></div><div style="margin: 0in \
0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;" \
class="">Hi<o:p class=""></o:p></div><div class=""><div style="margin: 0in 0in \
0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;" \
class=""><o:p class="">&nbsp;</o:p></div></div><div class=""><div style="margin: 0in \
0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;" \
class="">According to&nbsp;<a \
href="https://urldefense.com/v3/__https:/mvnrepository.com/artifact/org.apache.solr/so \
lr-solrj/8.4.1__;!!GqivPVa7Brio!KXfP-3nqKhTJ70Mp_Zbzm1rrbBJbV9DbTPCeWmcB7SJ71atVbuHNO4SCW_jwQ4fjYaDAGJk$" \
style="color: purple; text-decoration: underline;" \
class="">https://mvnrepository.com/artifact/org.apache.solr/solr-solrj/8.4.1</a><span \
class="Apple-converted-space">&nbsp;</span>SolrJ now has 29 compile-time \
dependencies. Those are the ones explicitly mentioned in ivy.xml and I believe that \
the number would be even higher if we used transitive dependencies.<o:p \
class=""></o:p></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; \
font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;" class="">That \
means that if you want to include SolrJ in a small app for just searching Solr, you \
get a ton of dependencies in your project that you may not need and that increase the \
chance of collision with other libs in your all.<o:p class=""></o:p></div></div><div \
class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: \
&quot;Times New Roman&quot;, serif;" class=""><o:p \
class="">&nbsp;</o:p></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; \
font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;" class="">So I want \
to raise the question whether it is time to take some action here.<o:p \
class=""></o:p></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; \
font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;" class=""><o:p \
class="">&nbsp;</o:p></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; \
font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;" class="">Otions \
may include:<o:p class=""></o:p></div></div><div class=""><ul type="disc" \
style="margin-bottom: 0in;" class=""><li class="MsoNormal" style="margin: 0in 0in \
0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">Get rid \
of unneeded deps<o:p class=""></o:p></li><li class="MsoNormal" style="margin: 0in 0in \
0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, \
serif;">Explicitly exclude deps from gradle build that we know we do not need<o:p \
class=""></o:p></li><li class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: \
12pt; font-family: &quot;Times New Roman&quot;, serif;">Modularize SolrJ into a \
solrj-core and solrj-xxx, where solrj-core would be the minimum anyone would need to \
do the basics<o:p class=""></o:p></li><li class="MsoNormal" style="margin: 0in 0in \
0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">Look \
into shading select libs that often cause collisions<o:p \
class=""></o:p></li></ul></div><div class=""><div style="margin: 0in 0in 0.0001pt; \
font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;" class=""><o:p \
class="">&nbsp;</o:p></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; \
font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;" class="">Let the \
discussion begin :)<o:p class=""></o:p></div></div><div class=""><div style="margin: \
0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;" \
class=""><o:p class="">&nbsp;</o:p></div></div><div class=""><div style="margin: 0in \
0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;" \
class="">Jan</div></div></div></div></blockquote></div><br \
class=""></div></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic