thinking-sphinx | Sphinx/Manticore plugin for ActiveRecord/Rails | Web Framework library

 by   pat Ruby Version: v5.5.0 License: MIT

kandi X-RAY | thinking-sphinx Summary

kandi X-RAY | thinking-sphinx Summary

thinking-sphinx is a Ruby library typically used in Server, Web Framework, Ruby On Rails applications. thinking-sphinx has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

Sphinx/Manticore plugin for ActiveRecord/Rails
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              thinking-sphinx has a medium active ecosystem.
              It has 1619 star(s) with 479 fork(s). There are 30 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 4 open issues and 974 have been closed. On average issues are closed in 72 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of thinking-sphinx is v5.5.0

            kandi-Quality Quality

              thinking-sphinx has 0 bugs and 88 code smells.

            kandi-Security Security

              thinking-sphinx has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              thinking-sphinx code analysis shows 0 unresolved vulnerabilities.
              There are 8 security hotspots that need review.

            kandi-License License

              thinking-sphinx is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              thinking-sphinx releases are available to install and integrate.
              thinking-sphinx saves you 7043 person hours of effort in developing the same functionality from scratch.
              It has 14583 lines of code, 1012 functions and 316 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed thinking-sphinx and discovered the below as its top functions. This is intended to give you an instant insight into thinking-sphinx implemented functionality, and help decide if they suit your requirements.
            • Merge a search into the options hash
            • Perform provided scopes for the given query
            • Default configuration for the current scope .
            • Search for one or more documents
            • Define a new scope .
            • Determine what to be used to customize .
            • Checks if method is missing
            • Merge facets
            • Merge a search function
            • Count the number of pages for a given query .
            Get all kandi verified functions for this library.

            thinking-sphinx Key Features

            No Key Features are available at this moment for thinking-sphinx.

            thinking-sphinx Examples and Code Snippets

            No Code Snippets are available at this moment for thinking-sphinx.

            Community Discussions

            QUESTION

            How to diagnose thinking sphinx failing on Heroku (but succeeding locally)?
            Asked 2021-Feb-15 at 03:55

            On a relatively old Rails app and Heroku Stack (16) trying to run rake ts:rebuild:

            ...

            ANSWER

            Answered 2021-Feb-15 at 03:55

            I couldn't figure out a good way to debug this, but I upgraded thinking_sphinx (3.1.4 -> 4.4.1) and flying_sphinx (1.2.1 -> 2.2.0) and the error went away!

            Source https://stackoverflow.com/questions/66202216

            QUESTION

            Heroku FlyingSphinx Configuration needed for ThinkingSphinx::Configuration.instance.controller.running?
            Asked 2020-Jun-25 at 00:13

            We ported our Rails 5.2 app to Heroku and were able to get almost everything working with FlyingSphinx.

            Search and indexing work well but as a convenience to our users, we try to let them know when the daemon is down for service or if we're re-indexing.

            Previously, we were able to use

            ThinkingSphinx::Configuration.instance.controller.running?

            But this always returns false on Heroku even if the daemon is running.

            Our thinking_sphinx.yml doesn't specify file locations or information on where the pid is, so I suspect this may be the issue; however, I can't find anywhere that would explain what to use in thinking_sphinx.yml for Heroku/FlyingSphinx, if it's at all necessary https://freelancing-gods.com/thinking-sphinx/v3/advanced_config.html.

            Our thinking_sphinx.yml looks like this now:

            ...

            ANSWER

            Answered 2020-Jun-25 at 00:13

            Ah, I've not had this requested before, but it's definitely possible:

            Source https://stackoverflow.com/questions/62471786

            QUESTION

            How to search data on created at less than in thinking sphinx
            Asked 2019-Oct-21 at 12:22

            Using thinking_sphinx to fetch data from records. It working fine but facing an issue that not find any to get records on date comparison like created_at greater than or less than. I check their official documentation also Thinking Sphinx

            Is thinking sphinx provide that way? If yes then can we do that

            ...

            ANSWER

            Answered 2019-Oct-21 at 12:22

            It is possible, but it's not entirely obvious.

            What you'll need to do is add an extra column in the SELECT clause, and then filter by that. Something along the lines of:

            Source https://stackoverflow.com/questions/58485901

            QUESTION

            How to do multi facets search in thinking sphinx rails
            Asked 2019-Sep-29 at 04:47

            Using thinking-sphinx for facets in my app and define two facets price and year.

            I want to fetch facets nested results.

            Now I am getting facets by year and it give count against year.

            ...

            ANSWER

            Answered 2019-Sep-29 at 04:47

            I think this code does what you want - though you may need to tweak things to get exactly what you're after:

            Source https://stackoverflow.com/questions/58061317

            QUESTION

            How to include associations in thinking sphinx rails
            Asked 2019-Aug-08 at 01:44

            Using thinking-sphinx to fetch records and it works fine. But the issue is that I want to fetch associated records also in results to improve site performance.

            Like I want to fetch pictures of articles also along with articles .

            Tried this one but its not working

            ...

            ANSWER

            Answered 2019-Aug-08 at 01:44

            Since Thinking Sphinx v3, the :include option is now within the :sql option:

            Source https://stackoverflow.com/questions/57395447

            QUESTION

            Thinking-sphinx FATAL: failed to create binlog.001, error=Too many open files
            Asked 2018-Dec-22 at 10:10

            I am using Sphinx 2.2.11-id64-release and gem 'thinking-sphinx', '3.3.0'.

            rake ts:configureworks fine and generated development development.sphinx.conf

            But when running sphinx rake ts:index ts:start it fails and shows these errors in logs:

            ...

            ANSWER

            Answered 2018-Dec-22 at 02:24

            As @barryhunter has noted, the issue here is the number of files that you're allowed to open at an operating system level. You're hitting this because of the large number of Sphinx indices you've got defined - but there should be ways around it - perhaps by using ulimit, as Barry's linked to in the comment.

            Source https://stackoverflow.com/questions/53884757

            QUESTION

            ThinkingSphinx::OutOfBoundsError configuration confusion
            Asked 2018-Jun-20 at 15:46

            Hitting an OutOfBoundsError as a consequence of misunderstanding the proper configuration syntax (which may also be a by-product of legacy syntax).

            The manual suggests a Class search taking on WillPaginate styled parameters. Having many fields to draw from, the model is defined as

            ...

            ANSWER

            Answered 2018-Jun-20 at 15:46

            I'm not sure what BaseSearch is doing with set_per_page (that's certainly not a Thinking Sphinx method), but it's worth noting that Sphinx defaults to a maximum of 1000 records. It is possible to configure Sphinx to return more, though - you need to set max_matches in your config/thinking_sphinx.yml to your preferred limit (per environment):

            Source https://stackoverflow.com/questions/50831411

            QUESTION

            Thinking Sphinx : Multiple indices search
            Asked 2017-Dec-13 at 08:21

            I want to create two indices for the same model and search separately

            I am using

            ...

            ANSWER

            Answered 2017-Dec-13 at 08:21

            In TS v3, the search option is now :indices rather than :index, and expects an array of index names. So, try the following:

            Source https://stackoverflow.com/questions/47772519

            QUESTION

            ThinkingSphinx indexing fails using ActiveRecord 5.1.3
            Asked 2017-Aug-18 at 14:17

            I have recently upgraded my app to Rails 5 and I now get an error when I want to Index (see stacktrace below).

            Only if I comment these two lines in my index is TS able to create the Index:

            ...

            ANSWER

            Answered 2017-Aug-18 at 14:17

            It turned out that the part , -> { uniq } was causing the problem. When I replaced it with , -> { distinct } the indexer would finally run through.

            Source https://stackoverflow.com/questions/45730950

            QUESTION

            Dealing with ThinkingSphinx realtime indices when destroying records
            Asked 2017-Jul-05 at 01:06

            I'm trying to convert a delta-based index in ThinkingSphinx into a realtime one. Per the docs, I've added this callback:

            after_save ThinkingSphinx::RealTime.callback_for(:location)

            That works just fine for adding and updating records, woo. My problem is in deleting records, which according to the Rails docs, don't trigger after_save callbacks. I've confirmed this by deleting a record, which is not then deleted from my sphinx index.

            I tried

            after_destroy ThinkingSphinx::RealTime.callback_for(:location)

            But this raises an error (as the realtime callbacks do not support after_destroy).

            How can I remove an entry from my index when using a real time index?

            (thinking-sphinx 3.3.0, rails 5.0.4, if that helps)

            ...

            ANSWER

            Answered 2017-Jul-05 at 01:06

            Thinking Sphinx automatically adds its own after_destroy callback to all indexed models, so removal of these records from real-time indices should happen without you needing to add any code.

            Source https://stackoverflow.com/questions/44909262

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install thinking-sphinx

            You can download it from GitHub.
            On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/pat/thinking-sphinx.git

          • CLI

            gh repo clone pat/thinking-sphinx

          • sshUrl

            git@github.com:pat/thinking-sphinx.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link