export const __webpack_esm_id__=40469;export const __webpack_esm_ids__=[40469];export const __webpack_esm_modules__={40469(){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",t),t.$inject=["$http","$repositories"];const e="rest/similarity";function t(t){return{getIndexes:function(r,n){return r?t.get(e,{headers:{"X-GraphDB-Repository":r,"X-GraphDB-Repository-Location":n}}):t.get(e)},getSimilarityIndexesWithVectorFields:function(r){return t.get(`${e}/${r}/indexes`)},getSearchQueries:function(){return t.get(`${e}/config`)},rebuildIndex:function(e){return r("PUT",e.name,e.options,e.selectQuery,e.searchQuery,e.analogicalQuery,e.stopList,e.infer,e.sameAs,e.type)},deleteIndex:function(r){return t.delete(`${e}?name=${r.name}`)},createIndex:r,getSamples:function(){return t.get(`${e}/samples`)},getQuery:function(e){return t.get("rest/similarity/query",{params:{name:e.indexName,options:e.indexOptions,stopList:e.indexStopList,selectQuery:e.query,infer:e.queryInference,sameAs:e.querySameAs,type:e.viewType,analyzer:e.indexAnalyzer}})},saveSearchQuery:function(e){return t({method:"put",url:"rest/similarity/search-query",data:e})}};function r(r,n,i,s,a,o,u,c,y,p,l){return t({method:r,url:`${e}`,noCancelOnRouteChange:!0,data:{name:n,options:i,selectQuery:s,stopList:u,infer:c,sameAs:y,type:p,analyzer:l,searchQuery:a,analogicalQuery:o}})}}}};
//# sourceMappingURL=40469.04af95da4e3f595956fe.bundle.js.map