Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setDocAsUpsert (0.26 sec)

  1. src/main/java/org/codelibs/fess/suggest/settings/SuggestSettings.java

                logger.debug("Set suggest settings. {} key: {} value: {}", settingsIndexName, key, value);
            }
            try {
                client.prepareUpdate().setIndex(settingsIndexName).setId(settingsId).setDocAsUpsert(true).setDoc(key, value)
                        .setRetryOnConflict(5).execute().actionGet(getIndexTimeout());
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/suggest/settings/ArraySettings.java

            try {
                final XContentBuilder builder = JsonXContent.contentBuilder().map(source);
                builder.flush();
                client.prepareUpdate().setIndex(actualIndex).setId(id).setDocAsUpsert(true).setDoc(builder).execute()
                        .actionGet(settings.getIndexTimeout());
                client.admin().indices().prepareRefresh().setIndices(actualIndex).execute().actionGet(settings.getIndicesTimeout());
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top