Comments (3)
Hi Rupert.
Maybe just do this via reflection... since it's just this method and it isn't used in a hot loop?
That javadoc reference to IndexSearcher.leafContexts
perhaps assumed from the context of SolrIndexSearcher itself since it's protected. If you wanted the leaves, you could grab the IndexReader and cast to CompositeReader then go from there. Any way, despite the name "Slow" it's appropriate for some uses. "Slow" in the name is supposed to scare people off from inadvertent usage. We use it here in an appropriate way. The recommended usage of the SolrTextTagger is to use an optimized index. In that case, you will get a bonafide LeafReader that is not SlowCompositeReaderWrapper. And if you couldn't realistically optimize to one segment, it would be difficult to write a version of the text tagger that operated per-segment; it might actually perform slower than using SlowCompositeReaderWrapper. By "Difficult" I should clarify it's quite do-able but would add complexity and IMO it's not worth it.
from solrtexttagger.
Hi,
That's exactly the information I was looking for. I was assuming something like that as the method was just renamed and their where no actual changes in the implementation.
I will provide a patch for the API change that works with both Solr < 6.2.1
and and > 6.3.0
.
best
Rupert
from solrtexttagger.
Thanks for helping.
from solrtexttagger.
Related Issues (20)
- SolrTextTagger not working with EmbeddedSolr 6.2.1 HOT 2
- implementing fuzzy matching HOT 2
- Copyrights, Org, etc. HOT 1
- OpenSextant projects add your topics. HOT 4
- SOLR 7 HOT 6
- Retrieve tagged term HOT 2
- synonyms with SolrTextTagger HOT 1
- Running the 100cities.txt example HOT 2
- Error while request tags: TaggerRequestHandler requires text to be POSTed to it HOT 1
- tagging within html attributes HOT 1
- FSTOrdPostingsFormat could enable faster Tagger HOT 1
- Can't create a schema with ConcatenateFilterFactory HOT 2
- Bring the ConcatenateFilter upstream to Lucene HOT 1
- Bring the TaggerRequestHandler to Solr (thus everything?) HOT 4
- Each tag in the output is an array of names and values instead of an object HOT 2
- htmlOffsetAdjust and matchText enabled gets StringIndexOutOfBoundsException HOT 7
- Small slowdown in tagging performance after moving to the Solr 7.4 built-in tagger handler HOT 1
- how to use the ConcatenateFilterFactory with solr 7.6 HOT 1
- Issue for creating collection in solrcloud. HOT 2
- why do you use FST HOT 2
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 solrtexttagger.