[Castore-commits] IndexationRechercheLucene.java 1.13 1.14
Céline BENOIT
cbenoit at adullact1.hosting.cri74.org
Ven 4 Aou 16:51:10 CEST 2006
Update of /cvsroot/castore/castore-core/src/java/fr/emn/castor/recherche/metier/lucene
In directory adullact1:/tmp/cvs-serv11773/src/java/fr/emn/castor/recherche/metier/lucene
Modified Files:
IndexationRechercheLucene.java
Log Message:
modification de la signature de la méthode indexFichier pour l'indexation du contenu textuel dans docGroupe
Index: IndexationRechercheLucene.java
===================================================================
RCS file: /cvsroot/castore/castore-core/src/java/fr/emn/castor/recherche/metier/lucene/IndexationRechercheLucene.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** IndexationRechercheLucene.java 16 May 2006 15:22:59 -0000 1.13
--- IndexationRechercheLucene.java 4 Aug 2006 14:51:08 -0000 1.14
***************
*** 80,84 ****
* utilisation du common logging.
*/
! private static Log log = LogFactory.getLog(IndexationRechercheLucene.class);
/**
* Le Writer de lucene.
--- 80,86 ----
* utilisation du common logging.
*/
! private static Log log = LogFactory
! .getLog(IndexationRechercheLucene.class);
!
/**
* Le Writer de lucene.
***************
*** 117,121 ****
.getInstance().getPathNotice(idDocument));
this.docType = NOTICE;
! this.indexFichier(notice);
if (log.isDebugEnabled()) {
log.debug("Fin d'indexation du document : "
--- 119,123 ----
.getInstance().getPathNotice(idDocument));
this.docType = NOTICE;
! this.indexFichier(notice, idDocument);
if (log.isDebugEnabled()) {
log.debug("Fin d'indexation du document : "
***************
*** 192,201 ****
*
* @param fichier le fichier a indexer
* @throws IndexationException Si il y a des erreurs lors de l'indexation.
*/
! protected void indexFichier(final File fichier)
throws IndexationException {
if (log.isDebugEnabled()) {
! log.debug("Indexation du document " + fichier + " ...");
}
// Document Lucene
--- 194,204 ----
*
* @param fichier le fichier a indexer
+ * @param id identifiant du document correspondant au fichier
* @throws IndexationException Si il y a des erreurs lors de l'indexation.
*/
! protected void indexFichier(final File fichier, final String id)
throws IndexationException {
if (log.isDebugEnabled()) {
! log.debug("Indexation du document " + fichier + "...");
}
// Document Lucene
***************
*** 208,212 ****
// les fields specifiques au document
try {
- String id = new File(fichier.getParent()).getName();
// ajout du type de fichier (document/notice)
Field typeField = new Field(
--- 211,214 ----
***************
*** 279,284 ****
*/
public final List<HashMap<String, String>> search(final Map query) {
! List<HashMap<String, String>> results =
! new ArrayList<HashMap<String, String>>();
String indexDir = Constants.CASTOR_INDEX_PATH;
if (IndexReader.indexExists(indexDir)) {
--- 281,285 ----
*/
public final List<HashMap<String, String>> search(final Map query) {
! List<HashMap<String, String>> results = new ArrayList<HashMap<String, String>>();
String indexDir = Constants.CASTOR_INDEX_PATH;
if (IndexReader.indexExists(indexDir)) {
Plus d'informations sur la liste de diffusion Castore-commits