- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ESSourceReader (0.08 sec)
-
src/main/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReader.java
import org.opensearch.index.query.QueryBuilders; import org.opensearch.search.SearchHit; import org.opensearch.search.sort.SortBuilder; public class ESSourceReader implements DocumentReader { private static final Logger logger = LogManager.getLogger(ESSourceReader.class); protected final Queue<Map<String, Object>> queue = new ConcurrentLinkedQueue<>(); protected final AtomicBoolean isFinished = new AtomicBoolean(false);
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 7.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReaderTest.java
} @Test public void test_getLimitDocNum() throws Exception { assertEquals(10, ESSourceReader.getLimitDocNum(100, 10, -1)); assertEquals(25, ESSourceReader.getLimitDocNum(50, 50, -1)); assertEquals(10, ESSourceReader.getLimitDocNum(50, 50, 10)); } @Test public void test_sort() throws Exception { String indexName = "test-index";
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 8.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/SuggestHelper.java
final SystemHelper systemHelper = ComponentUtil.getSystemHelper(); suggester.indexer().indexFromDocument(() -> { final ESSourceReader reader = new ESSourceReader(ComponentUtil.getSearchEngineClient(), suggester.settings(), fessConfig.getIndexDocumentSearchIndex()); reader.setScrollSize(fessConfig.getSuggestSourceReaderScrollSizeAsInteger());
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:20:39 UTC 2024 - 18.1K bytes - Viewed (0) -
README.md
suggester.indexer().index(new SuggestItem(new String[] { "検索", "エンジン" }, readings, 1, tags, roles, SuggestItem.Kind.DOCUMENT)); ``` ### Add suggest documents from source of index ```java DocumentReader reader = new ESSourceReader( client, suggester.settings(), "contentIndexName", "contentTypeName"); suggester.indexer().indexFromDocument(reader, 2, 100).getResponse(); ``` ### Add suggest document from queryLog
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Jan 19 03:33:49 UTC 2023 - 1.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/SuggesterTest.java
bulkRequestBuilder.execute().actionGet(); runner.refresh(); CountDownLatch latch = new CountDownLatch(1); AtomicInteger numObInputDoc = new AtomicInteger(0); ESSourceReader reader = new ESSourceReader(client, suggester.settings(), indexName); reader.setScrollSize(1000); suggester.indexer().indexFromDocument(() -> reader, 1000, 100).then(response -> {
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 37K bytes - Viewed (0)