Git Product home page Git Product logo

Comments (3)

dsmiley avatar dsmiley commented on May 25, 2024

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.

westei avatar westei commented on May 25, 2024

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.

dsmiley avatar dsmiley commented on May 25, 2024

Thanks for helping.

from solrtexttagger.

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.