How to reindex specific documents in Lucene
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2009 11:33 AM
Is there any way to reindex in Lucene just one (or a set of) document(s)? I've only seen the way to reindex the full repository, but not individual documents.
Regards
Regards
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2009 09:35 AM
Hello,
With a Javascript, you may search for the docs and then apply the save function. The documents are then marked dirty and will be reindexed:
See example of Javascript there: http://wiki.alfresco.com/wiki/JavaScript_API_Cookbook
Greetings
With a Javascript, you may search for the docs and then apply the save function. The documents are then marked dirty and will be reindexed:
var docs = search.luceneSearch("TEXT:test"); for (var i=0; i<docs.length; i++) { if (docs[i] != null) { docs[i].save(); } }
See example of Javascript there: http://wiki.alfresco.com/wiki/JavaScript_API_Cookbook
Greetings
