Package com.acumenvelocity.ath.solr
Class AthIndex
- java.lang.Object
-
- com.acumenvelocity.ath.solr.AthIndex
-
public class AthIndex extends Object
-
-
Constructor Summary
Constructors Constructor Description AthIndex()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longcreateMany(String coreName, List<Map<String,Object>> docs)static voidcreateOne(String coreName, Map<String,Object> doc)static voiddeleteById(String coreName, String id)static voiddeleteByIds(String coreName, List<String> ids)static voiddeleteByQuery(String coreName, String query)static voiddone()static SolrgetIndex()static <Response> ResponsegetMany(String coreName, String query, Map<String,Object> queryParams, Class<Response> responseClass)static SolrgetSolr()static voidinit()
-
-
-
Method Detail
-
getIndex
public static Solr getIndex()
-
getSolr
public static Solr getSolr()
-
createOne
public static void createOne(String coreName, Map<String,Object> doc) throws Exception
- Throws:
Exception
-
createMany
public static long createMany(String coreName, List<Map<String,Object>> docs) throws Exception
- Throws:
Exception
-
deleteById
public static void deleteById(String coreName, String id) throws Exception
- Throws:
Exception
-
deleteByIds
public static void deleteByIds(String coreName, List<String> ids) throws Exception
- Throws:
Exception
-
deleteByQuery
public static void deleteByQuery(String coreName, String query) throws Exception
- Throws:
Exception
-
-