lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From madhav bahuguna <>
Subject How to use less than and greater than in data-config file of solr
Date Thu, 16 Oct 2014 05:52:23 GMT
I have two tables and i want to link them using greater than and less than
condition.They have nothing in common,the only way i can link them is using
range values.Iam able to do this in Mysql but how do i do this in solr in
my data-config.xml file This is how my data-config file looks

<entity name="business_colors" query="SELECT business_colors_id,
from business_colors where business_rating_from &gt;=
'${businessmasters.business_point}' AND
business_rating_to &lt; '${businessmasters.business_point}'"
 deltaQuery="select business_colors_id from business_colors where
business_colors_modify >
parentDeltaQuery="select business_id from businessmasters where
business_point &lt;
${business_colors.business_rating_from} AND business_point &gt;=
 <field column="business_colors_id" name="id"/>
<field column="business_rating_from" name="business_rating_from"
indexed="true" stored="true" />
 <field column="business_rating_to" name="business_rating_to"
indexed="true" stored="true" />
 <field column="business_text" name="business_text" indexed="true"
stored="true" />
 <field column="hex_colors" name="hex_colors" indexed="true" stored="true" />
 <field column="rgb_colors" name="rgb_colors" indexed="true" stored="true" />
 <field column="business_colors_modify" name="business_colors_modify"

When i click full indexing data does not get index and no error is shown.
What is wrong with this,Can any one help and advise.What i have seen is
that if i replace AND with OR it works fine or just use one condition
instead of both it works fine . Can any one advise and help How do i
achieve what i want to do.
I have also posted this question in stackoverflow
Madhav Bahuguna

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