cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene search with timestamp

thefog
Champ in-the-making
Champ in-the-making
Hi,

I have a problem.
I want to be able to search with lucene and use timestamp.

I have changed
d_dictionary.datatype.d_datetime.analyzer=org.alfresco.repo.search.impl.lucene.analysis.DateAnalyser
TO
d_dictionary.datatype.d_datetime.analyzer=org.alfresco.repo.search.impl.lucene.analysis.DateTimeAnalyser
in the file dataTypeAnalyzers.properties as suggested by Andy Hind in this forum.
I have also done a full index recovery but I still can´t search with lucene and timestamps.

Please let me know if you have any suggestions for me 🙂

Best regards,
Therese
8 REPLIES 8

om_mail
Champ in-the-making
Champ in-the-making
Hi
  I am also having this problem i am using alfresco3.3 version I have changed

d_dictionary.datatype.d_datetime.analyzer=org.alfresco.repo.search.impl.lucene.analysis.DateAnalyser
TO
d_dictionary.datatype.d_datetime.analyzer=org.alfresco.repo.search.impl.lucene.analysis.DateTimeAnalyser
I have also done a full index recovery .

but  i am  not getting any result even on date base but when i revert back to DateTimeAnalyser to DateAnalyser i am getting result based on date range but not on datetime based.
My qury is something like that
   @namespce\:content_date:[2010-11-12T20:30:10:000Z TO 2010-11-12T20:50:10:000Z]
any help
Thanks in advance !!
Regards ,
    Om

andy
Champ on-the-rise
Champ on-the-rise
Hi

I think you require the fix for ALF-4056, and would like ALF-695, both of which will be available to the community in the release after 3.4.
Alfresco 3.3 and 3.4 enterprise releases currently have these fixes

Andy

billerby
Champ on-the-rise
Champ on-the-rise
Ok, so if I understand you correctly this is not present in Alfresco Community 3.4.c? When you say "in the release after 3.4." I guess you mean 3.5? (not for example 3.4.d)

Thanks
/Erik

andy
Champ on-the-rise
Champ on-the-rise
Hi

Yes I mean Alfrecso 3.5 community or something like it.

Andy

andy
Champ on-the-rise
Champ on-the-rise
HI

The latest 3.3 code should do the trick.

See http://blogs.alfresco.com/wp/andyh/2011/02/01/whats-in-a-date/

Andy

bweiss
Champ in-the-making
Champ in-the-making
If we were to make this change, would content added to the repository and indexed going forward include the timestamp and be searchable (older content only searchable down to date resolution)?  We have a use case where this would be helpful and it is not necessary to search on time for older data.  I am trying to avoid a full index rebuild because I suspect a full index rebuild would take several days…

Thanks,
Brad

andy
Champ on-the-rise
Champ on-the-rise
Hi

If you make the change and do not reindex - you will not be able to query olds docs by date time - they will not be found at all  - the two are not compatible.

Andy

om_mail
Champ in-the-making
Champ in-the-making
Hi Andy,

Actually i have migrated enterprise version of alfresco from alfresco3.1 to alfresco 3.3 .Is there any way to filter the search criteria based on date time or in between the date time range.
Any help please
Thanks in advance
Regards ,
Om