Author: vmassol
Date: 2007-09-28 11:17:52 +0200 (Fri, 28 Sep 2007)
New Revision: 5127
Modified:
xwiki-platform/core/branches/xwiki-core-1.1/src/main/java/com/xpn/xwiki/plugin/lucene/IndexData.java
Log:
XWIKI-1735: Lucene Plugin does not index creation or modification dates
Patch submitted by David Ward
+ removed unused import
Merged from trunk (rev 5126)
Modified:
xwiki-platform/core/branches/xwiki-core-1.1/src/main/java/com/xpn/xwiki/plugin/lucene/IndexData.java
===================================================================
---
xwiki-platform/core/branches/xwiki-core-1.1/src/main/java/com/xpn/xwiki/plugin/lucene/IndexData.java
2007-09-28 09:17:04 UTC (rev 5126)
+++
xwiki-platform/core/branches/xwiki-core-1.1/src/main/java/com/xpn/xwiki/plugin/lucene/IndexData.java
2007-09-28 09:17:52 UTC (rev 5127)
@@ -21,7 +21,6 @@
import java.util.Date;
-import org.apache.log4j.Logger;
import org.apache.lucene.document.Field;
import org.apache.lucene.index.Term;
import org.apache.lucene.search.Query;
@@ -108,11 +107,11 @@
}
if (modificationDate != null) {
luceneDoc.add(new Field(IndexFields.DOCUMENT_DATE, IndexFields
- .dateToString(modificationDate), Field.Store.YES,
Field.Index.NO));
+ .dateToString(modificationDate), Field.Store.YES,
Field.Index.UN_TOKENIZED));
}
if (creationDate != null) {
luceneDoc.add(new Field(IndexFields.DOCUMENT_CREATIONDATE,
IndexFields
- .dateToString(creationDate), Field.Store.YES, Field.Index.NO));
+ .dateToString(creationDate), Field.Store.YES,
Field.Index.UN_TOKENIZED));
}
// stored Text fields: tokenized and indexed
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications