clouway / cuse

clouWay universal search engine
1 stars 7 forks source link

Unclear parameter "indexNmae" in the searchEngine.delete(indexName, ids) method #3

Open mlesikov opened 11 years ago

mlesikov commented 11 years ago

It is unclear which will be the index name.

searchEngine.get().delete("indexName", addressIds);

the index name is placed in the IndexingStrategy object, there is a method :

...
String getIndesName();
...

so would be better if we pass the index class(maybe interface is need), and then it can find the strategy and the index name, or we can pass directly the index strategy