Comments (3)
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.
Reader should be reopened whenever you want to see changes. this does nothing more then clear its internal cache.
from solandra.
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)
- Solandra Build Issue HOT 4
- deleting elements breaks range queries HOT 4
- Solandra Future HOT 13
- Use CompositeType HOT 1
- Long query times when node down
- Solandra Caching
- Indexing Problem
- Solandra seed node crashes consistently (crash dump files attached) HOT 1
- Trying to facet date
- Build troubles
- Dropped reads on bigger data HOT 2
- ConcurrentModificationException - SolrCmdDistributor
- Solandra missing results with date range query
- MoreLikeThis HOT 2
- Solandra OutOfMemoryError: Java heap space with 12GB Heap Size
- Build fails with cassandra 1.2 HOT 3
- Support for Cassandra >= 2.0
- Make use of Cassandra triggers
- Solandra final step issue
- Unit Tests for improved test coverage
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solandra.