Giter Club home page Giter Club logo

dicetechjobs / relevancyfeedback Goto Github PK

View Code? Open in Web Editor NEW
23.0 6.0 5.0 551 KB

Dice.com's relevancy feedback solr plugin created by Simon Hughes (Dice). Contains request handlers for doing MLT style recommendations, conceptual search, semantic search and personalized search

Home Page: http://www.dice.com

License: Apache License 2.0

Java 100.00%
solr-plugin solr solr-mlt-handler mlt-query relevancy-feedback-plugin dice semantic-search personalized-search recommendation-engine recommender

relevancyfeedback's People

Contributors

simonhughes22 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

relevancyfeedback's Issues

RelevancyFeedback Plugin for Solr 9

Hi, I want to use this plugin with Solr 9, I tried to change the code but I could not solve the errors which occurred after changing the POM.xml file. Can you guide me how can I upgrade this for Solr 9. Regards

Solr / Lucene 7

I took at stab at upgrading to Solr 7 (master...garysieling:Solr.7.0.0).

I'm stuck on a change that removes "getBoost" and "setBoost", and was wondering if you had any insight on what the right change would be.

Here is the ticket which appears to have made this change:
https://issues.apache.org/jira/browse/LUCENE-6819

Error:(163, 27) java: cannot find symbol
symbol: method getBoost()
location: variable qry of type org.apache.lucene.search.Query
D:\projects\email-alerts\RelevancyFeedback\src\main\java\org\dice\solrenhancements\unsupervisedfeedback\UnsupervisedFeedback.java
Error:(728, 26) java: cannot find symbol
symbol: class PayloadScoreQuery
location: class org.dice.solrenhancements.unsupervisedfeedback.UnsupervisedFeedback
Error:(738, 15) java: cannot find symbol
symbol: method setBoost(float)
location: variable tq of type org.apache.lucene.search.TermQuery
Error:(776, 56) java: cannot find symbol
symbol: method getBoost()
location: variable termQuery of type org.apache.lucene.search.Query
Error:(779, 46) java: cannot find symbol
symbol: method getBoost()
location: variable termQuery of type org.apache.lucene.search.Query
Error:(781, 22) java: cannot find symbol
symbol: method setBoost(java.lang.Float)
location: variable termQuery of type org.apache.lucene.search.Query
D:\projects\email-alerts\RelevancyFeedback\src\main\java\org\dice\solrenhancements\relevancyfeedback\RelevancyFeedbackHandler.java
Error:(252, 25) java: cannot find symbol
symbol: method getBoost()
location: variable q of type org.apache.lucene.search.Query
Error:(305, 39) java: cannot find symbol
symbol: method getFacetCounts()
location: variable f of type org.apache.solr.request.SimpleFacets
D:\projects\email-alerts\RelevancyFeedback\src\main\java\org\dice\solrenhancements\relevancyfeedback\RelevancyFeedback.java
Error:(989, 26) java: cannot find symbol
symbol: class PayloadTermQuery
location: class org.dice.solrenhancements.relevancyfeedback.RelevancyFeedback
Error:(997, 19) java: cannot find symbol
symbol: method setBoost(float)
location: variable tq of type org.apache.lucene.search.Query
Error:(1044, 57) java: cannot find symbol
symbol: method getBoost()
location: variable termQuery of type org.apache.lucene.search.Query
Error:(1047, 47) java: cannot find symbol
symbol: method getBoost()
location: variable termQuery of type org.apache.lucene.search.Query
Error:(1049, 22) java: cannot find symbol
symbol: method setBoost(java.lang.Float)
location: variable termQuery of type org.apache.lucene.search.Query

UnsupervisedFeedbackHandler - 500 error/NullPointerException (Solr 6.3.0)

Hi Simon,

I recently watched a video of the "Personalized Search and Job Recommendations" talk you did at Revolution 2017 and decided to try out the unsupervised feedback plugin. I seem to be running into some issues, though.

I've configured an UnsupervisedFeedbackHandler based on the example config you have (modified as needed), but the handler is throwing a 500 error.

I have a fresh Solr 6.3 instance with some dummy data (just id and text fields). Any insight into what could be going on would be greatly appreciated.

See stack trace below:

java.lang.NullPointerException
	at org.apache.solr.util.SolrPluginUtils.calculateMinShouldMatch(SolrPluginUtils.java:690)
	at org.apache.solr.util.SolrPluginUtils.setMinShouldMatch(SolrPluginUtils.java:654)
	at org.apache.solr.util.SolrPluginUtils.setMinShouldMatch(SolrPluginUtils.java:661)
	at org.dice.solrenhancements.relevancyfeedback.RFQuery.getOrQuery(RFQuery.java:51)
	at org.dice.solrenhancements.unsupervisedfeedback.UnsupervisedFeedbackHelper.expandQueryAndReExecute(UnsupervisedFeedbackHelper.java:119)
	at org.dice.solrenhancements.unsupervisedfeedback.UnsupervisedFeedbackHandler.expandQueryAndReExecute(UnsupervisedFeedbackHandler.java:234)
	at org.dice.solrenhancements.unsupervisedfeedback.UnsupervisedFeedbackHandler.handleRequestBody(UnsupervisedFeedbackHandler.java:132)
	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:153)
	at org.apache.solr.core.SolrCore.execute(SolrCore.java:2213)
	at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:654)
	at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:460)
	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:303)
	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:254)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1160)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1092)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
	at org.eclipse.jetty.server.Server.handle(Server.java:518)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
	at java.lang.Thread.run(Thread.java:748)

Thanks!

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.