Re: how to get modified field data if it doesn't exist in meta

2017-02-13 Thread Gytis Mikuciunas
Hi, Who can compile me this to jar file? (I found something similar i need in google: ( http://stackoverflow.com/questions/20745935/set-last-modified-field-when-not-defined-in-document-in-solr )) package modifiedG4; import java.io.IOException; import org.apache.solr.common.SolrInputDocument; imp

Re: how to get modified field data if it doesn't exist in meta

2017-02-12 Thread Alexandre Rafalovitch
It would have to be a custom one. One you write. But I believe Tika would pass a file name as one of the parameters, so you just need to use standard Java API to look up the system date. That - of course - assumes that the files you index are on the same filesystem as Solr itself, so it could look

Re: how to get modified field data if it doesn't exist in meta

2017-02-12 Thread Gytis Mikuciunas
Alexandre, could you provide some link or give more info about this processor? I'm novice in the solr world;) Regards, Gytis On Feb 10, 2017 14:59, "Alexandre Rafalovitch" wrote: Custom update request processor that looks up a file from the name and gets the date should work. Regards, Ale

Re: how to get modified field data if it doesn't exist in meta

2017-02-12 Thread Gytis Mikuciunas
As I understand TimestampUpdateProcessorFactory will insert current date(now). We don't want this. Regards, Gytis On Feb 10, 2017 19:18, "Erick Erickson" wrote: > Would TimestampUpdateProcessorFactory work? > > Best, > Erick > > On Fri, Feb 10, 2017 at 4:59 AM, Alexandre Rafalovitch > wrote: >

Re: how to get modified field data if it doesn't exist in meta

2017-02-10 Thread Erick Erickson
Would TimestampUpdateProcessorFactory work? Best, Erick On Fri, Feb 10, 2017 at 4:59 AM, Alexandre Rafalovitch wrote: > Custom update request processor that looks up a file from the name and gets > the date should work. > > Regards, > Alex > > On 10 Feb 2017 2:39 AM, "Gytis Mikuciunas" wrot

Re: how to get modified field data if it doesn't exist in meta

2017-02-10 Thread Alexandre Rafalovitch
Custom update request processor that looks up a file from the name and gets the date should work. Regards, Alex On 10 Feb 2017 2:39 AM, "Gytis Mikuciunas" wrote: Hi, We have started to use solr for our documents indexing (vsd, vsdx, xls,xlsx, doc, docx, pdf, txt). Modified date values is