Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for DocumentReader (0.12 sec)

  1. src/main/java/org/codelibs/fess/suggest/index/contents/document/DocumentReader.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.suggest.index.contents.document;
    
    import java.io.Closeable;
    import java.util.Map;
    
    public interface DocumentReader extends Closeable {
        Map<String, Object> read();
    
        @Override
        void close();
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 849 bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

                try (final DocumentReader documentReader = reader.get()) {
                    Map<String, Object> doc = documentReader.read();
                    while (doc != null) {
                        if (Thread.currentThread().isInterrupted()) {
                            break;
                        }
                        docs.add(doc);
                        doc = documentReader.read();
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  3. test-site/app/models/SuggestIndex.java

    package models;
    
    import components.*;
    import org.codelibs.fess.suggest.Suggester;
    import org.codelibs.fess.suggest.exception.SuggesterException;
    import org.codelibs.fess.suggest.index.contents.document.DocumentReader;
    import org.codelibs.fess.suggest.index.contents.document.ESSourceReader;
    import org.codelibs.fess.suggest.request.suggest.SuggestResponse;
    
    public class SuggestIndex {
        public SuggestResponse suggest(String query) {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Fri Nov 06 08:48:32 UTC 2015
    - 964 bytes
    - Viewed (0)
  4. 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();
    ```
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Jan 19 03:33:49 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. README.ja.md

    ```
    
    ### Add suggest documents from source of index
    
    Elasticsearchにインデックスされているコンテンツを解析してサジェストドキュメントを生成します。
    
    ```java
    DocumentReader reader = new ESSourceReader(
        client,
        suggester.settings(),
        "contentIndexName",
        "contentTypeName");
    suggester.indexer().indexFromDocument(reader, 2, 100).getResponse();
    ```
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Mon Jul 27 10:00:55 UTC 2015
    - 2.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReader.java

    import org.opensearch.index.query.QueryBuilder;
    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<>();
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top