Solr
  1. Solr
  2. SOLR-3719

Add "instant search" capability to example/files /browse

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      Once upon a time I tinkered with this in a personal github fork https://github.com/erikhatcher/lucene-solr/commits/instant_search/

      1. SOLR-3719.patch
        2 kB
        Esther Quansah
      2. SOLR-3719.patch
        3 kB
        Erik Hatcher
      3. SOLR-3719.patch
        0.8 kB
        Esther Quansah

        Activity

        Hide
        Robert Muir added a comment -

        moving all 4.0 issues not touched in a month to 4.1

        Show
        Robert Muir added a comment - moving all 4.0 issues not touched in a month to 4.1
        Hide
        Erik Hatcher added a comment -

        Esther Quansah is going to tackle this for example/files.

        Show
        Erik Hatcher added a comment - Esther Quansah is going to tackle this for example/files.
        Hide
        Esther Quansah added a comment -

        Instant search functional with change of type and locale..now on to suggest!

        Show
        Esther Quansah added a comment - Instant search functional with change of type and locale..now on to suggest!
        Hide
        Erik Hatcher added a comment -

        Thanks Esther Quansah for that initial patch. I've tweaked it a bit to have a separate template that includes the facets too such that as the instant search results appear the facets (top phrases by default) adjust too. I also added escaping of the query parameter on the instant search URL (otherwise multiword results with spaces didn't work). The one issue with my patch is that the top phrases tag cloud loses its styling - can you fix that somehow?

        Show
        Erik Hatcher added a comment - Thanks Esther Quansah for that initial patch. I've tweaked it a bit to have a separate template that includes the facets too such that as the instant search results appear the facets (top phrases by default) adjust too. I also added escaping of the query parameter on the instant search URL (otherwise multiword results with spaces didn't work). The one issue with my patch is that the top phrases tag cloud loses its styling - can you fix that somehow?
        Hide
        Erik Hatcher added a comment -

        I wonder if this feature should adapt the technique, say, google.com does with its instant search feature whereby hitting return or tabbing out of the search field adjusts the URL with the hash-q trick so that the page doesn't have to fully refresh (when pressing enter) or having the old state (when tabbing out). Food for thought.

        Show
        Erik Hatcher added a comment - I wonder if this feature should adapt the technique, say, google.com does with its instant search feature whereby hitting return or tabbing out of the search field adjusts the URL with the hash-q trick so that the page doesn't have to fully refresh (when pressing enter) or having the old state (when tabbing out). Food for thought.
        Hide
        Erik Hatcher added a comment -

        But in general - this feature as-is works pretty nicely! Getting the suggest in there will make it even sweeter.

        Show
        Erik Hatcher added a comment - But in general - this feature as-is works pretty nicely! Getting the suggest in there will make it even sweeter.
        Hide
        Erik Hatcher added a comment - - edited

        Another tweak needed Esther Quansah is to add filters/sort to the instant search request. I think adding lensNoQ to the URL should do the trick.

        Show
        Erik Hatcher added a comment - - edited Another tweak needed Esther Quansah is to add filters/sort to the instant search request. I think adding lensNoQ to the URL should do the trick.
        Hide
        Esther Quansah added a comment -

        Awesome idea, Erik! Definitely one we should consider after suggest is implemented. With this small patch - updated JS to fix tag cloud styling during instasearch, attached filter/sort to instasearch. Now onto suggest!!

        Show
        Esther Quansah added a comment - Awesome idea, Erik! Definitely one we should consider after suggest is implemented. With this small patch - updated JS to fix tag cloud styling during instasearch, attached filter/sort to instasearch. Now onto suggest!!
        Hide
        Erik Hatcher added a comment -

        Committed: oops, forgot to put JIRA tag on commit message. trunk is r1683778, branch_5x is 1683779.

        I adjusted a couple of things from Esther's patch: streamlined some macros (required some moving around in the built-in VrW ones), added mincount=0 to the doc_type facet so that the type doesn't disappear on the UI in instant search, and added start (effectively page number) when switching locales so it doesn't jump back to page 1.

        Show
        Erik Hatcher added a comment - Committed: oops, forgot to put JIRA tag on commit message. trunk is r1683778, branch_5x is 1683779. I adjusted a couple of things from Esther's patch: streamlined some macros (required some moving around in the built-in VrW ones), added mincount=0 to the doc_type facet so that the type doesn't disappear on the UI in instant search, and added start (effectively page number) when switching locales so it doesn't jump back to page 1.
        Hide
        Shalin Shekhar Mangar added a comment -

        Bulk close for 5.3.0 release

        Show
        Shalin Shekhar Mangar added a comment - Bulk close for 5.3.0 release

          People

          • Assignee:
            Erik Hatcher
            Reporter:
            Erik Hatcher
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development