Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for DocumentReader (0.07 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. 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)
  4. 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