Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of git://github.com/javasoze/bobo

  • Loading branch information...
commit 3c6672e57a532e93a94f63b2029b43eb2fc5900a 2 parents 2ad52a7 + 52a85eb
@xiaoyang xiaoyang authored
View
21 bobo-browse/src/com/browseengine/bobo/api/BoboIndexReader.java
@@ -155,6 +155,27 @@ public IndexReader getInnerReader()
return in;
}
+ @Override
+ public synchronized IndexReader reopen() throws CorruptIndexException,
+ IOException {
+ IndexReader newInner = in.reopen(true);
+ if (newInner != in){
+ return BoboIndexReader.getInstance(newInner, _facetHandlers, _runtimeFacetHandlerFactories, _workArea);
+ }
+ else{
+ return this;
+ }
+ }
+
+ @Override
+ public synchronized IndexReader reopen(boolean openReadOnly)
+ throws CorruptIndexException, IOException {
+ if (!openReadOnly){
+ throw new IOException("BoboIndexReader is readonly-only");
+ }
+ return reopen();
+ }
+
public Object getFacetData(String name){
return _facetDataMap.get(name);
}
View
4 bobo-browse/src/com/browseengine/bobo/api/BoboSubBrowser.java
@@ -65,11 +65,11 @@ public BoboSubBrowser(BoboIndexReader reader)
_allFacetHandlerMap = null;
}
- private static boolean isNoQueryNoFilter(BrowseRequest req)
+ private boolean isNoQueryNoFilter(BrowseRequest req)
{
Query q = req.getQuery();
Filter filter = req.getFilter();
- return ((q == null || q instanceof MatchAllDocsQuery) && filter == null);
+ return ((q == null || q instanceof MatchAllDocsQuery) && filter == null && !_reader.hasDeletions());
}
public Object[] getRawFieldVal(int docid,String fieldname) throws IOException{
View
0  bobo-browse/src/com/browseengine/bobo/facets/data/FacetDataCacheFieldComparator.java
No changes.
View
0  bobo-browse/src/com/browseengine/bobo/facets/data/FacetDataCacheSource.java
No changes.
Please sign in to comment.
Something went wrong with that request. Please try again.