Coder Social home page Coder Social logo

Comments (6)

joshlukas avatar joshlukas commented on June 29, 2024

Same here. Updated Nextcloud to latest version 27.1.2, ocr search is not available anymore.

sudo -u www-data php /var/www/nextcloud/occ fulltextsearch:test
`.Testing your current setup:
Creating mocked content provider. ok
Testing mocked provider: get indexable documents. (2 items) ok
Loading search platform. (Elasticsearch) ok
Testing search platform. ok
Locking process ok
Removing test. ok
Pausing 3 seconds 1 2 3 ok
Initializing index mapping. ok
Indexing generated documents. ok
Pausing 3 seconds 1 2 3 ok
Retreiving content from a big index (license). (size: 32386) ok
Comparing document with source. ok
Searching basic keywords:

  • 'test' (result: 0, expected: ["simple"]) fail
    Error detected, unlocking process ok
    In Test.php line 676:

Unexpected SearchResult: {"provider":{"id":"test_provider","name":"Test Provider"},"platform":{"id":"elastic_search","name":"Elasticsearch"},"documents":[],"info":[],"meta":{"timedOu
t":false,"time":0,"count":0,"total":0,"maxScore":0}}

fulltextsearch:test [--output [OUTPUT]] [-j|--json] [-d|--platform_delay PLATFORM_DELAY]
`

from fulltextsearch.

Sommerwiesel avatar Sommerwiesel commented on June 29, 2024

Have probably found a fix for this, the elasticsearch cluster was still running in version 7.11 (older elasticsearch).
You have to either update the cluster via elasticsearch REST API or completely wipe your cluster (i.e. rm -r /var/lib/elasticsearch) after the update to fulltextsearch 27.1.

from fulltextsearch.

lumintulogic-admin avatar lumintulogic-admin commented on June 29, 2024

Same problem here with NC 27.1.2, and Elasticsearch Version: 7.17.14, Build: default/deb/774e3bfa4d52e2834e4d9d8d669d77e4e5c1017f/2023-10-05T22:17:33.780167078Z, JVM: 21

Installing latest elasticsearch doesn't resolve the problem

from fulltextsearch.

Sommerwiesel avatar Sommerwiesel commented on June 29, 2024

Have probably found a fix for this, the elasticsearch cluster was still running in version 7.11 (older elasticsearch). You have to either update the cluster via elasticsearch REST API or completely wipe your cluster (i.e. rm -r /var/lib/elasticsearch) after the update to fulltextsearch 27.1.

Can confirm that updating or purging the elasticsearch cluster fixes the problem.
Updating elasticsearch from 7.x to 8.x leaves the cluster and fulltextsearch index in 7.x compatibility mode.
For anyone having this bug too, see the elasicsearch wiki on how to perform a cluster update via elasticsearch REST API or simply delete /var/lib/elasticsearch/* and run a full reindex via fulltextsearch:index.
Closed.

@joshlukas
@lumintulogic-admin

from fulltextsearch.

joshlukas avatar joshlukas commented on June 29, 2024

Can not confirm that. Upgrading or installing to ver. 8 and also purging the index in /var/lib/elasticsearch/ does not change anything. Still not able to search ocr data.

from fulltextsearch.

DecaTec avatar DecaTec commented on June 29, 2024

I ran into the same problem here. On one cloud instance, I just deleted the index and created a new one, problem solved.

But on another cloud instance, there are 2.5 TB of data and I really don't want to reindex here.
@Sommerwiesel You mentioned that you could also perform a cluster update via API. Do you have a link where this specific endpoint is explained or even an example API call? Searched the ES API but couldn't find anything of value here.

from fulltextsearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.