lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Sutskever <Vladimir.Sutske...@jpmorgan.com>
Subject RE: Delta Import with something other than Date
Date Thu, 09 Sep 2010 19:23:27 GMT
Shawn,

Can you provide a sample of passing the parameter via URL? And how using it would look in
the data-config.xml

Thanks!

-Vladimir


-----Original Message-----
From: Shawn Heisey [mailto:elyograg@elyograg.org] 
Sent: Thursday, September 09, 2010 3:04 PM
To: solr-user@lucene.apache.org
Subject: Re: Delta Import with something other than Date

  On 9/8/2010 4:32 PM, David Yang wrote:
> I have a table that I want to index, and the table has no datetime
> stamp. However, the table is append only so the primary key can only go
> up. Is it possible to store the last primary key, and use some delta
> query="select id where id>${last_id_value}"
>

I ran into the same thing.  I track this in my build scripts and simply 
pass min and max ID variables via the dataimport URL, which are used in 
data-config.xml to plug them into my SQL statement.  When I asked about 
it on the list, someone important told me to file a Jira on making it 
generic, it is SOLR-1920.

https://issues.apache.org/jira/browse/SOLR-1920

Thanks,
Shawn

This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  

Mime
View raw message