Giter VIP home page Giter VIP logo

Comments (3)

simonhughes22 avatar simonhughes22 commented on May 26, 2024 1

Committed PR. Should address this.

from relevancyfeedback.

simonhughes22 avatar simonhughes22 commented on May 26, 2024

@jstol how are you call it and how is it configured? Are you using the 6.30 branch? It's quite easy to attach solr to the debugger if needed to debug this sort of issue. I can't say from just the stack trace what's going on. Are you passing in the mm parameter? If so, make sure you are using the correct format, and try removing it and allowing it to use the default. If you are not specifying it, try specifying it. But knowing your solr version, your config and providing me an example of how it's being called would help me troubleshoot it.

from relevancyfeedback.

jstol avatar jstol commented on May 26, 2024

@simonhughes22 thanks for getting back to me. I was using master (based on the part of the README that says "Solr 6.3 (see branch) also master"), but I'll try out the Solr.6.3.0 branch to see if I get the same issues.

My configuration was basically the same as in your example, but for the initial retrieval step I configured defType to dismax by default and only set a df of "text" - no other default settings.

ie. the section with:

<!-- Regular query configuration -->
<str  name="defType">edismax</str>
<str  name="df">title</str>
<str  name="qf">title^1.5   skills^1.25 description^1.1</str>
<str  name="pf2">title^3.0  skills^2.5  description^1.5</str>
<str  name="mm">1</str>
<str  name="q.op">OR</str>

became something similar to:

<!-- Regular query configuration -->
<str  name="defType">dismax</str>
<str  name="df">title</str>

(And of course I changed field names as needed). Not sure if the handler was designed to assume that a default mm parameter is specified within this section, but I seemed to get an exception without it.

I ended up attaching the debugger and stepping through the code to figure out where I was having my issues. I submitted some changes in a pull request, which you can see here: #3. It seems like a default value for mm isn't set within UnsupervisedFeedbackHelper, which was causing it to throw an Exception. Not sure if I modified it to handle it properly, though.

Thanks!

from relevancyfeedback.

Related Issues (3)

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.