Code Monkey home page Code Monkey logo

Comments (7)

mlissner avatar mlissner commented on July 19, 2024 1

For others that arrive here. Looks like it does exist, but it's undocumented. You can query in the normal way, then find your data in the grouped attribute.

from pysolr.

mattdeboard avatar mattdeboard commented on July 19, 2024

Hey, so I implemented this myself in a somewhat different manner before I saw your issue. #31

I elected to create another class for grouping results. What made you decide to modify the Results class?

from pysolr.

anti-social avatar anti-social commented on July 19, 2024

I don't see need to create another entity for grouping results. Also I think old code should have opportunity to work with grouped results.

from pysolr.

mattdeboard avatar mattdeboard commented on July 19, 2024

Guess it's a different use case for us working with Haystack; modifying the Results class in this way doesn't do what we need specifically. Cheers

On Nov 14, 2011, at 7:57 AM, [email protected] wrote:

I don't see need to create another entity for grouping results. Also I think old code should have opportunity to work with grouped results.


Reply to this email directly or view it on GitHub:
#28 (comment)

from pysolr.

mlissner avatar mlissner commented on July 19, 2024

Wait, so #31 didn't get merged, and this ticket was closed. But it seems like you're both satisfied with the solution...does grouping exist somewhere in pysolr?

from pysolr.

acdha avatar acdha commented on July 19, 2024

@mlissner Sorry about that – there's definitely a documentation lapse and the pull request is easy to miss in search (#43 with the important part being 5301e78).

329896c is also worth knowing about if you're dealing with still newer features like the collapsing query parser and the Expand component. I used that awhile back to implement https://gist.github.com/acdha/0a66ca23984bc8d607936fecd9c29941 with less invasive changes than the previous grouped backend (https://gist.github.com/acdha/3750774).

from pysolr.

mlissner avatar mlissner commented on July 19, 2024

Yeah, I was very pleased to discover the response attribute. Provides a lot of flexibility to the library, if it doesn't already do what you want it to. Thanks!

from pysolr.

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.