Re: Indexing a Date/DateTime/Time field in Lucene 4

2017-04-08 Thread KARTHIK SHIVAKUMAR
I did use the Date into millisec and stored the long into index, this helped me to convert the searched index into any date format later on the o/p. On Wed, Apr 5, 2017 at 6:08 PM, Frederik Van Hoyweghen < frederik.vanhoyweg...@chapoo.com> wrote: > Hey everyone, > > I'm seeing some conflicting su

Re: How to get the index last modification date ?

2017-04-08 Thread Lokesh Madan
Can’t you introduce the field ? It should be straight forward, an every time you update the index, make sure to update the field. IndexWriter has setCommitData api, which you can call overtime you update/flush the indices. > On Apr 8, 2017, at 2:30 PM, Jean-Claude Dauphin wrote: > > Thank you

Re: How to get the index last modification date ?

2017-04-08 Thread Jean-Claude Dauphin
Thank you Ahmet for the suggestion. I checked the LukeRequestHandler.java code source and the it looks like this: String s = reader.getIndexCommit().getUserData().get( SolrIndexWriter.COMMIT_TIME_MSEC_KEY); if (s != null) { indexInfo.add("lastModified", new Date(Long.parseLong(s)));

Re: How to get the index last modification date ?

2017-04-08 Thread Ahmet Arslan
Hi Jean, How about LukeRequest handler? Many of the information displayed on the admin screen comes from it.https://wiki.apache.org/solr/LukeRequestHandler Ahmet On Sunday, April 9, 2017, 2:21:38 AM GMT+3, Jean-Claude Dauphin wrote: Hello, I need to check the index last modification date to c

How to get the index last modification date ?

2017-04-08 Thread Jean-Claude Dauphin
Hello, I need to check the index last modification date to count the number of indexed terms only if tthe index has changed. Any idea or suggestion on how to do this. Thank you in advance. Best wishes, -- Jean-Claude Dauphin