GithubHelp home page GithubHelp logo

delete doesn't always delete about solandra HOT 3 CLOSED

tjake avatar tjake commented on July 22, 2024
delete doesn't always delete

from solandra.

Comments (3)

kwiggen avatar kwiggen commented on July 22, 2024

OK this seems to be my misunderstanding. With a file system backed lucene I think you need to close a writer, before a reader can see the changes.

If I add

indexWriter.commit();

to the code it does nothing, however

indexReader.clearCache();

does the trick.

What is the lifespan of a Reader and Writer in the Cassandra world? Should I be getting a new Reader/Writer for each user interaction?

Sorry for the noob questions, I am off to read more...

from solandra.

tjake avatar tjake commented on July 22, 2024

Reader should be reopened whenever you want to see changes. this does nothing more then clear its internal cache.

from solandra.

kwiggen avatar kwiggen commented on July 22, 2024

But the 2nd read in my example gives you a TopDocs size of 1, but when you get the Document it has no Field objects. I would consider this a bug as you get reference to the Document, but it is empty. Either the Document should be filled in, or not returned.

from solandra.

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.