* this library now expects Lucene version 1.9.1 (due to API changes in Lucene it currently doesn't work with version 2.0)
* added (most of) missing analyzers in Search.getAnalyzer() * createIndex doesn't support a third argument for force-create an index anymore. to clear an index use its create() method instead * Index now uses an IndexModifier instead of an IndexWriter in most cases * to create a new Searcher instance now call index.getSearcher() or pass the index to search in as argument to the Searcher constructor * checkWriteLock() is gone, instead getWriter() and getModifier() try for 2 seconds to return a writer/modifier. this should avoid concurrency problems * Index.addIndexes() now takes a number of index directory arguments * Index.create() now deletes all files in the directory (before it didn't) * added checks for existing writer/modifier/reader before calling close() * Index.getFieldNames() now returns a javascript array instead of a java object one * Index.isLocked() doesn't create a reader anymore (before it did, but didn't use it) * removed Index.getTerms() - if someone is missing that, shout * Index.addDocument() now expects a single Document instance, for batch adding use the new method addDocuments() * same with Index.removeDocument() * added new method Index.updateDocument() that does removal and adding in one step (so the index is locked just once instead of two times) * the wrapped lucene Query instance is now a public field - this saves from duplicating the getter method in every extending prototype * Document.addField() now uses new DateTools class instead of the deprecated DateField utility methods * removed Document.getDateField() since Document.getField() now handles dates as well * added JSDoc compatible documentation
This commit is contained in:
parent
e6d7fe7520
commit
5496bcfb04
1 changed files with 727 additions and 551 deletions
1278
helma/Search.js
1278
helma/Search.js
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue