Giter Site home page Giter Site logo

Support for edismax about sunspot HOT 12 CLOSED

sunspot avatar sunspot commented on July 3, 2024
Support for edismax

from sunspot.

Comments (12)

alindeman avatar alindeman commented on July 3, 2024

I like the idea of edismax as a configuration option at least. But I don't know all of the nuances yet. @nz, etc.. thoughts?

from sunspot.

vamsee avatar vamsee commented on July 3, 2024

Hi, any updates on adding edismax support to Sunspot?

from sunspot.

khaled avatar khaled commented on July 3, 2024

@jashkenas did that monkey patch end up working out?

from sunspot.

vamsee avatar vamsee commented on July 3, 2024

@khaled it works. Thanks, @jashkenas.

from sunspot.

jashkenas avatar jashkenas commented on July 3, 2024

Yes -- the monkey patch is currently working for us.

from sunspot.

nz avatar nz commented on July 3, 2024

Edismax is great. We should be using it. I am getting close to doing a Sunspot sprint that drops all vestiges of Solr 1.4 support in favor of Solr 3 and 4, at which time this would be a prime candidate for inclusion.

from sunspot.

inspire22 avatar inspire22 commented on July 3, 2024

Any luck with this?

from sunspot.

tadast avatar tadast commented on July 3, 2024

Any plans to proceed with this?
Is there any reason why #371 doesn't get merged in? If there is anything I could help with, please let me know @nz.

from sunspot.

zquestz avatar zquestz commented on July 3, 2024

We are also using the monkey patch with great success. When do you guy's plan to merge this to the main repo? I like my paren support.

from sunspot.

heaven avatar heaven commented on July 3, 2024

A little improved version:

Sunspot::Query::OriginalDismax = Sunspot::Query::Dismax

class Sunspot::Query::PatchedDismax < Sunspot::Query::OriginalDismax
  def to_params
    super.merge(:defType => "edismax")
  end

  def to_subquery
    super.sub("{!dismax", "{!edismax")
  end
end

Sunspot::Query.send :remove_const, :Dismax
Sunspot::Query::Dismax = Sunspot::Query::PatchedDismax

from sunspot.

heaven avatar heaven commented on July 3, 2024

Also there is a difference in query parsing, see http://lucene.472066.n3.nabble.com/Edismax-vs-Dismax-td4083812.html

from sunspot.

rywall avatar rywall commented on July 3, 2024

Closed by #487.

from sunspot.

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.