Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-2969

Query inside the sort

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 4.0-ALPHA
    • Fix Version/s: 4.0-ALPHA
    • Component/s: clients - php
    • Labels:
    • Environment:

      LAMP

      Description

      Hi All,

      I need a help in solr search. I wanted to use sorting in my application with a complex conditions.

      Please see below line for sorting:

      sort=sum(geodist(geocode,42.358162,-71.054065),membership_level_no, query(if(zipcode==94123) and status ==1)1 else 0 asc

      right now in sum() function first two arguments are fine I want to add a query which will work something like I wrote above.

      Please anyone can give me idea to achieve this.

      Thanks you,
      Jitu

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jitusaklani jitendra saklani
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified