Code Monkey home page Code Monkey logo

Comments (5)

cbess avatar cbess commented on May 20, 2024

Are you using the Xapian backend?

There is a small mention about performance considerations in the README under the Basic Setup and End-to-end Interface.

Basically review the two available backends.

Let me know if that helps.

from text-sherlock.

borisbaldassari avatar borisbaldassari commented on May 20, 2024

Hi Christopher,

Thanks for the quick reply! I'm using the default backend indeed.
I'll give xapian a try and let you know asap..

Thanks! (and a happy new year,btw! :-)

from text-sherlock.

borisbaldassari avatar borisbaldassari commented on May 20, 2024

I can't get the xapian backend working, I'm sorry.

Xapian eventually installed ok, sherlock actually tries to use it, but the db cannot be opened:

  File "/home/boris/text-sherlock/core/sherlock/backends/xapian_backend.py", line 63, in open_index
    self.index = xapian.WritableDatabase(path, xapian.DB_OPEN)
  File "/home/boris/text-sherlock/sherlock_env/lib/python3.4/site-packages/xapian/__init__.py", line 9151, in __init__
    _xapian.WritableDatabase_swiginit(self, _xapian.new_WritableDatabase(*args))
xapian.DatabaseOpeningError: /home/boris/text-sherlock/data/indexes/main/iamglass: Failed to open glass revision file for reading (No such file or directory)

I've added the following lines to local_settings.yml:

default_searcher: 'xapian'
default_indexer: 'xapian'
index_paths: '/crossminer/git_repos/'

Hum.. The index_paths directive doesn't seem to work either, but that's another problem I guess.

Any hint? Thanks a lot in advance to help me get that up and running..

from text-sherlock.

borisbaldassari avatar borisbaldassari commented on May 20, 2024

The folder /home/boris/text-sherlock/data/indexes/main/ exists, is writeable by the user. The file iamglass doesn't exist, though.

from text-sherlock.

borisbaldassari avatar borisbaldassari commented on May 20, 2024

My setup is probably too big, closing the issue for clarity's sake. Thanks for the support team, you're great! :-)

from text-sherlock.

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.