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

List:       openmrs-dev
Subject:    Re: If lucene queries are not working in 1.11.1, how do I fix it?
From:       Darius Jazayeri <djazayeri () gmail ! com>
Date:       2015-04-07 12:27:59
Message-ID: CAA-nHncLiw7LkeVkSACXLcwEfySq2a5C+i-cg5MaG2J46FFc0g () mail ! gmail ! com
[Download RAW message or body]

Remember that it's not the master branch of the standalone.

Also, while you're looking at the standalone, the welcome text in the UI
says OpenMRS 2.0, but we need it to be 2.2, and ideally driven by the build
property you pass in.

-Darius (by phone)
On Apr 7, 2015 5:47 AM, "Rafal Korytkowski" <rafal@openmrs.org> wrote:

> I've created https://issues.openmrs.org/browse/RA-633 with a possible fix
> that Daniel will test (I don't have Linux at hand to run standalone build).
> 
> 
> -Rafał
> 
> On 7 April 2015 at 10:53, Kaweesi Joseph <kaweesi.joseph2012@gmail.com>
> wrote:
> 
> > We may have to generate a new demo data for 1.11.1
> > 
> > 
> > - k-joseph
> > 
> > What we most need now is *NOT** legal religion* *BUT* *true and genuine
> > conversion* through *Christ our righteousness*
> > 
> > On Tue, Apr 7, 2015 at 11:49 AM, Rafal Korytkowski <rafal@openmrs.org>
> > wrote:
> > 
> > > I think that before we ship standalone we need to drop the global
> > > property from the initial database. I'll see if it can be easily automated.
> > > 
> > > 
> > > -Rafał
> > > 
> > > On 6 April 2015 at 23:13, Darius Jazayeri <darius@openmrs.org> wrote:
> > > 
> > > > This worked.
> > > > 
> > > > Any idea how the search index could have been corrupted/invalid? (Maybe
> > > > something to do with the way that we build the standalone databases by
> > > > *running* the standalone and then stopping/killing it, and zipping
> > > > things?)
> > > > 
> > > > -Darius
> > > > 
> > > > On Mon, Apr 6, 2015 at 1:06 PM, Rafal Korytkowski <rafal@openmrs.org>
> > > > wrote:
> > > > 
> > > > > I meant the search.indexVersion global property.
> > > > > 
> > > > > 
> > > > > -Rafał
> > > > > 
> > > > > On 6 April 2015 at 20:08, Darius Jazayeri <djazayeri@gmail.com> wrote:
> > > > > 
> > > > > > Hi All,
> > > > > > 
> > > > > > I trying to test a build of the standalone for OpenMRS 2.2, and I hit
> > > > > > a problem with searching for concepts in the local install.
> > > > > > 
> > > > > > I need some guidance about how to bootstrap lucene (or how else to
> > > > > > debug this).
> > > > > > 
> > > > > > In the UI if I go to the 1.x concept screens, and search for "no" it
> > > > > > finds nothing.
> > > > > > 
> > > > > > Debugging (attaching intellij to that tomcat as remote), I put a
> > > > > > breakpoint
> > > > > > in org.openmrs.api.db.hibernate.HibernateConceptDAO#getCountOfConcepts \
> > > > > > and I see the following query:
> > > > > > 
> > > > > > (concept.conceptMappings.conceptReferenceTerm.code:(no)^0.4 OR ((
> > > > > > name:("no")^0.7 OR ( (name:(no)^0.6 OR name:(no*)^0.3 OR
> > > > > > name:(no~0.8)^0.1))^0.3) localePreferred:true)^0.4 OR (( name:("no")^0.7 \
> > > > > > OR ( (name:(no)^0.6 OR name:(no*)^0.3 OR name:(no~0.8)^0.1))^0.3))^0.2)
> > > > > > locale:(en* ) voided:false
> > > > > > 
> > > > > > This return a resultSize() of 0.
> > > > > > 
> > > > > > However if I look in the db, or just do conceptService.getConcept(2)
> > > > > > the concept for no is there, with a name in the correct local.
> > > > > > 
> > > > > > Could the problem be that lucene indices aren't built? How might that
> > > > > > have happened? What would I need to do to research this or fix it? (I \
> > > > > > know virtually nothing about the specifics of how concept searching was \
> > > > > > redone in 1.11+.)
> > > > > > 
> > > > > > -Darius
> > > > > > 
> > > > > > --
> > > > > > OpenMRS Developers: http://om.rs/dev
> > > > > > Post: dev@openmrs.org | Unsubscribe: dev+unsubscribe@openmrs.org
> > > > > > Manage your OpenMRS subscriptions: http://om.rs/id
> > > > > > 
> > > > > > *** ALERT! This group will be moved to OpenMRS Talk effective 10
> > > > > > April 2015 at 19:00 UTC. Please visit
> > > > > > https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508
> > > > > >  for details and to make necessary changes.
> > > > > > 
> > > > > 
> > > > > --
> > > > > OpenMRS Developers: http://om.rs/dev
> > > > > Post: dev@openmrs.org | Unsubscribe: dev+unsubscribe@openmrs.org
> > > > > Manage your OpenMRS subscriptions: http://om.rs/id
> > > > > 
> > > > > *** ALERT! This group will be moved to OpenMRS Talk effective 10 April
> > > > > 2015 at 19:00 UTC. Please visit
> > > > > https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508
> > > > > for details and to make necessary changes.
> > > > > 
> > > > 
> > > > --
> > > > OpenMRS Developers: http://om.rs/dev
> > > > Post: dev@openmrs.org | Unsubscribe: dev+unsubscribe@openmrs.org
> > > > Manage your OpenMRS subscriptions: http://om.rs/id
> > > > 
> > > > *** ALERT! This group will be moved to OpenMRS Talk effective 10 April
> > > > 2015 at 19:00 UTC. Please visit
> > > > https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508
> > > > for details and to make necessary changes.
> > > > 
> > > 
> > > --
> > > OpenMRS Developers: http://om.rs/dev
> > > Post: dev@openmrs.org | Unsubscribe: dev+unsubscribe@openmrs.org
> > > Manage your OpenMRS subscriptions: http://om.rs/id
> > > 
> > > *** ALERT! This group will be moved to OpenMRS Talk effective 10 April
> > > 2015 at 19:00 UTC. Please visit
> > > https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508
> > > for details and to make necessary changes.
> > > 
> > > To unsubscribe from this group and stop receiving emails from it, send
> > > an email to dev+unsubscribe@openmrs.org.
> > > 
> > 
> > --
> > OpenMRS Developers: http://om.rs/dev
> > Post: dev@openmrs.org | Unsubscribe: dev+unsubscribe@openmrs.org
> > Manage your OpenMRS subscriptions: http://om.rs/id
> > 
> > *** ALERT! This group will be moved to OpenMRS Talk effective 10 April
> > 2015 at 19:00 UTC. Please visit
> > https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508
> > for details and to make necessary changes.
> > 
> 
> --
> OpenMRS Developers: http://om.rs/dev
> Post: dev@openmrs.org | Unsubscribe: dev+unsubscribe@openmrs.org
> Manage your OpenMRS subscriptions: http://om.rs/id
> 
> *** ALERT! This group will be moved to OpenMRS Talk effective 10 April
> 2015 at 19:00 UTC. Please visit
> https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508
> for details and to make necessary changes.
> 

-- 
OpenMRS Developers: http://om.rs/dev
Post: dev@openmrs.org | Unsubscribe: dev+unsubscribe@openmrs.org
Manage your OpenMRS subscriptions: http://om.rs/id

*** ALERT! This group will be moved to OpenMRS Talk effective 10 April 2015 at 19:00 \
UTC. Please visit https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508 \
for details and to make necessary changes.

To unsubscribe from this group and stop receiving emails from it, send an email to \
dev+unsubscribe@openmrs.org.


[Attachment #3 (text/html)]

<p dir="ltr">Remember that it&#39;s not the master branch of the standalone.</p>
<p dir="ltr">Also, while you&#39;re looking at the standalone, the welcome text in \
the UI says OpenMRS 2.0, but we need it to be 2.2, and ideally driven by the build \
property you pass in.</p> <p dir="ltr">-Darius (by phone)</p>
<div class="gmail_quote">On Apr 7, 2015 5:47 AM, &quot;Rafal Korytkowski&quot; &lt;<a \
href="mailto:rafal@openmrs.org">rafal@openmrs.org</a>&gt; wrote:<br \
type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I&#39;ve created  <a \
href="https://issues.openmrs.org/browse/RA-633" \
target="_blank">https://issues.openmrs.org/browse/RA-633</a> with a possible fix that \
Daniel will test (I don&#39;t have Linux at hand to run standalone build).</div><div \
class="gmail_extra"><br clear="all"><div><div><br>-Rafał</div></div> <br><div \
class="gmail_quote">On 7 April 2015 at 10:53, Kaweesi Joseph <span dir="ltr">&lt;<a \
href="mailto:kaweesi.joseph2012@gmail.com" \
target="_blank">kaweesi.joseph2012@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">We may have to generate a new demo data for \
1.11.1  </div><div class="gmail_extra"><br clear="all"><div><div><div \
dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div><div>- \
k-joseph</div></div><div dir="ltr">  
	
	


<p style="margin-bottom:0in;background-repeat:initial initial"><font face="Arial \
Narrow, sans-serif"><font \
style="font-size:6pt;background-color:rgb(204,204,204)"><font color="#222222"><font \
face="comic sans ms, sans-serif">What we most need now is  </font></font><font \
color="#222222"><font face="comic sans ms, \
sans-serif"><u><b>NOT</b></u></font></font><font color="#222222"><font face="comic \
sans ms, sans-serif"><b>  legal religion</b></font></font><font color="#222222">  \
</font><font color="#222222"><font face="comic sans ms, \
sans-serif"><u>BUT</u></font></font><font color="#222222">  </font><font \
color="#222222"><font face="comic sans ms, sans-serif"><b>true and genuine \
conversion</b></font></font><font color="#222222">  </font><font \
color="#222222"><font face="comic sans ms, sans-serif">through  </font></font><font \
color="#222222"><font face="comic sans ms, sans-serif"><b>Christ our \
righteousness</b></font></font></font></font></p></div></div></div></div></div></div></div>
 <br><div class="gmail_quote"><div><div>On Tue, Apr 7, 2015 at 11:49 AM, Rafal \
Korytkowski <span dir="ltr">&lt;<a href="mailto:rafal@openmrs.org" \
target="_blank">rafal@openmrs.org</a>&gt;</span> wrote:<br></div></div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div><div><div dir="ltr">I think that before we ship \
standalone we need to drop the global property from the initial database. I&#39;ll \
see if it can be easily automated.</div><div class="gmail_extra"><br \
clear="all"><div><div><br>-Rafał</div></div><div><div> <br><div \
class="gmail_quote">On 6 April 2015 at 23:13, Darius Jazayeri <span dir="ltr">&lt;<a \
href="mailto:darius@openmrs.org" target="_blank">darius@openmrs.org</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div dir="ltr">This worked.<div><br></div><div>Any idea \
how the search index could have been corrupted/invalid? (Maybe something to do with \
the way that we build the standalone databases by <i>running</i>  the standalone and \
then stopping/killing it, and zipping things?)</div><span><font \
color="#888888"><div><br></div><div>-Darius</div></font></span></div><div><div><div \
class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 6, 2015 at 1:06 PM, \
Rafal Korytkowski <span dir="ltr">&lt;<a href="mailto:rafal@openmrs.org" \
target="_blank">rafal@openmrs.org</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><span style="font-size:12.8000001907349px">I \
meant the  </span><span style="font-size:12.8000001907349px">search.indexVersion \
global property.</span><br></div><div class="gmail_extra"><br \
clear="all"><div><div><br>-Rafał</div></div> <br><div class="gmail_quote"><span>On 6 \
April 2015 at 20:08, Darius Jazayeri <span dir="ltr">&lt;<a \
href="mailto:djazayeri@gmail.com" target="_blank">djazayeri@gmail.com</a>&gt;</span> \
wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div>Hi \
All,</div><div><br></div><div>I trying to test a build of the standalone for OpenMRS \
2.2, and I hit a problem with searching for concepts in the local \
install.</div><div><br></div><div>I need some guidance about how to bootstrap lucene \
(or how else to debug this).</div><div><br></div><div>In the UI if I go to the 1.x \
concept screens, and search for &quot;no&quot; it finds \
nothing.</div><div><br></div><div>Debugging (attaching intellij to that tomcat as \
remote), I put a breakpoint in  \
org.openmrs.api.db.hibernate.HibernateConceptDAO#getCountOfConcepts and I see the \
following query:</div><div><br></div><div>(concept.conceptMappings.conceptReferenceTerm.code:(no)^0.4 \
OR (( name:(&quot;no&quot;)^0.7 OR ( (name:(no)^0.6 OR name:(no*)^0.3 OR \
name:(no~0.8)^0.1))^0.3) localePreferred:true)^0.4 OR (( name:(&quot;no&quot;)^0.7 OR \
( (name:(no)^0.6 OR name:(no*)^0.3 OR name:(no~0.8)^0.1))^0.3))^0.2) locale:(en* ) \
voided:false<br><div><br></div><div>This return a resultSize() of \
0.</div><div><br></div><div>However if I look in the db, or just do \
conceptService.getConcept(2) the concept for no is there, with a name in the correct \
local.</div><div><br></div><div>Could the problem be that lucene indices aren&#39;t \
built? How might that have happened? What would I need to do to research this or fix \
it? (I know virtually nothing about the specifics of how concept searching was redone \
in 1.11+.)</div><span><font \
color="#888888"><div><br></div></font></span></div><span><font \
color="#888888"><div>-Darius</div></font></span></div></div></div><span><font \
color="#888888">

<p></p>

-- <br><span>
OpenMRS Developers: <a href="http://om.rs/dev" \
                target="_blank">http://om.rs/dev</a><br>
Post: <a href="mailto:dev@openmrs.org" target="_blank">dev@openmrs.org</a> | \
Unsubscribe: <a href="mailto:dev%2Bunsubscribe@openmrs.org" \
target="_blank">dev+unsubscribe@openmrs.org</a><br> Manage your OpenMRS \
subscriptions: <a href="http://om.rs/id" target="_blank">http://om.rs/id</a><br>  \
                <br>
*** ALERT! This group will be moved to OpenMRS Talk effective 10 April 2015 at 19:00 \
UTC. Please visit <a \
href="https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508" \
target="_blank">https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508</a> \
for details and to make necessary changes.<br> \
</span></font></span></blockquote></div><br></div><div><div>

<p></p>

-- <br>
OpenMRS Developers: <a href="http://om.rs/dev" \
                target="_blank">http://om.rs/dev</a><br>
Post: <a href="mailto:dev@openmrs.org" target="_blank">dev@openmrs.org</a> | \
Unsubscribe: <a href="mailto:dev%2Bunsubscribe@openmrs.org" \
target="_blank">dev+unsubscribe@openmrs.org</a><br> Manage your OpenMRS \
subscriptions: <a href="http://om.rs/id" target="_blank">http://om.rs/id</a><br>  \
                <br>
*** ALERT! This group will be moved to OpenMRS Talk effective 10 April 2015 at 19:00 \
UTC. Please visit <a \
href="https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508" \
target="_blank">https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508</a> \
for details and to make necessary changes.<br> \
</div></div></blockquote></div><br></div>

<p></p>

-- <br>
OpenMRS Developers: <a href="http://om.rs/dev" \
                target="_blank">http://om.rs/dev</a><br>
Post: <a href="mailto:dev@openmrs.org" target="_blank">dev@openmrs.org</a> | \
Unsubscribe: <a href="mailto:dev%2Bunsubscribe@openmrs.org" \
target="_blank">dev+unsubscribe@openmrs.org</a><br> Manage your OpenMRS \
subscriptions: <a href="http://om.rs/id" target="_blank">http://om.rs/id</a><br>  \
                <br>
*** ALERT! This group will be moved to OpenMRS Talk effective 10 April 2015 at 19:00 \
UTC. Please visit <a \
href="https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508" \
target="_blank">https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508</a> \
for details and to make necessary changes.<br> \
</div></div></blockquote></div><br></div></div></div></div></div><div><div><div><div>

<p></p>

-- <br>
OpenMRS Developers: <a href="http://om.rs/dev" \
                target="_blank">http://om.rs/dev</a><br>
Post: <a href="mailto:dev@openmrs.org" target="_blank">dev@openmrs.org</a> | \
Unsubscribe: <a href="mailto:dev%2Bunsubscribe@openmrs.org" \
target="_blank">dev+unsubscribe@openmrs.org</a><br> Manage your OpenMRS \
subscriptions: <a href="http://om.rs/id" target="_blank">http://om.rs/id</a><br>  \
                <br>
*** ALERT! This group will be moved to OpenMRS Talk effective 10 April 2015 at 19:00 \
UTC. Please visit <a \
href="https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508" \
target="_blank">https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508</a> \
for details and to make necessary changes.<br>

<p></p></div></div>

To unsubscribe from this group and stop receiving emails from it, send an email to <a \
href="mailto:dev+unsubscribe@openmrs.org" \
target="_blank">dev+unsubscribe@openmrs.org</a>.<br> \
</div></div></blockquote></div><br></div><div><div>

<p></p>

-- <br>
OpenMRS Developers: <a href="http://om.rs/dev" \
                target="_blank">http://om.rs/dev</a><br>
Post: <a href="mailto:dev@openmrs.org" target="_blank">dev@openmrs.org</a> | \
Unsubscribe: <a href="mailto:dev%2Bunsubscribe@openmrs.org" \
target="_blank">dev+unsubscribe@openmrs.org</a><br> Manage your OpenMRS \
subscriptions: <a href="http://om.rs/id" target="_blank">http://om.rs/id</a><br>  \
                <br>
*** ALERT! This group will be moved to OpenMRS Talk effective 10 April 2015 at 19:00 \
UTC. Please visit <a \
href="https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508" \
target="_blank">https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508</a> \
for details and to make necessary changes.<br> \
</div></div></blockquote></div><br></div>

<p></p>

-- <br>
OpenMRS Developers: <a href="http://om.rs/dev" \
                target="_blank">http://om.rs/dev</a><br>
Post: <a href="mailto:dev@openmrs.org" target="_blank">dev@openmrs.org</a> | \
Unsubscribe: <a href="mailto:dev%2Bunsubscribe@openmrs.org" \
target="_blank">dev+unsubscribe@openmrs.org</a><br> Manage your OpenMRS \
subscriptions: <a href="http://om.rs/id" target="_blank">http://om.rs/id</a><br>  \
                <br>
*** ALERT! This group will be moved to OpenMRS Talk effective 10 April 2015 at 19:00 \
UTC. Please visit <a \
href="https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508" \
target="_blank">https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508</a> \
for details and to make necessary changes.<br> </blockquote></div>

<p></p>

-- <br />
OpenMRS Developers: <a href="http://om.rs/dev">http://om.rs/dev</a><br />
Post: dev@openmrs.org | Unsubscribe: dev+unsubscribe@openmrs.org<br />
Manage your OpenMRS subscriptions: <a href="http://om.rs/id">http://om.rs/id</a><br \
/> &nbsp;<br />
*** ALERT! This group will be moved to OpenMRS Talk effective 10 April 2015 at 19:00 \
UTC. Please visit <a \
href="https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508">https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508</a> \
for details and to make necessary changes.<br />

<p></p>

To unsubscribe from this group and stop receiving emails from it, send an email to <a \
href="mailto:dev+unsubscribe@openmrs.org">dev+unsubscribe@openmrs.org</a>.<br />



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

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