Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.10.1
    • Fix Version/s: 5.1, 6.0
    • Component/s: clients - java
    • Labels:
    • Environment:

      Win7 64bit/JDK8

      Description

      I tested the mlt component in Solr Admin query with this parameter

      mlt.fl=categories,tags,vtext
      

      It works.

      HOWEVER

      mlt.fl=categories&mlt.fl=tags&mlt.fl=vtext
      

      Does not work!

      MOREOVER
      The solrJ client seems to turn this line

      query.setParam( "mlt.fl", "categories", "tags", "vtext" );
      

      into this

      mlt.fl=categories&mlt.fl=tags&mlt.fl=vtext
      

      Which, of course, does not work

      1. SOLR-7072.patch
        12 kB
        Shalin Shekhar Mangar

        Activity

        Hide
        Shalin Shekhar Mangar added a comment -

        Thanks Constantin.

        Here's a patch which adds multiple mlt.fl param support and adds single-node and distributed tests for the same.

        I found that the DistributedMLTComponentTest has been disabled for a long time with the only comment that it doesn't work on freebsd. The freebsd jvm has known problems and many solr tests do not pass on it. Still it is bad that we have disabled this test completely so I have enabled it again to recover some test coverage of the feature.

        Show
        Shalin Shekhar Mangar added a comment - Thanks Constantin. Here's a patch which adds multiple mlt.fl param support and adds single-node and distributed tests for the same. I found that the DistributedMLTComponentTest has been disabled for a long time with the only comment that it doesn't work on freebsd. The freebsd jvm has known problems and many solr tests do not pass on it. Still it is bad that we have disabled this test completely so I have enabled it again to recover some test coverage of the feature.
        Hide
        ASF subversion and git services added a comment -

        Commit 1657493 from shalin@apache.org in branch 'dev/trunk'
        [ https://svn.apache.org/r1657493 ]

        SOLR-7072: Multiple mlt.fl does not work

        Show
        ASF subversion and git services added a comment - Commit 1657493 from shalin@apache.org in branch 'dev/trunk' [ https://svn.apache.org/r1657493 ] SOLR-7072 : Multiple mlt.fl does not work
        Hide
        ASF subversion and git services added a comment -

        Commit 1657494 from shalin@apache.org in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1657494 ]

        SOLR-7072: Multiple mlt.fl does not work

        Show
        ASF subversion and git services added a comment - Commit 1657494 from shalin@apache.org in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1657494 ] SOLR-7072 : Multiple mlt.fl does not work
        Hide
        Shalin Shekhar Mangar added a comment -

        Thanks Constantin. This will be released with Solr 5.1

        Show
        Shalin Shekhar Mangar added a comment - Thanks Constantin. This will be released with Solr 5.1
        Hide
        Timothy Potter added a comment -

        Bulk close after 5.1 release

        Show
        Timothy Potter added a comment - Bulk close after 5.1 release

          People

          • Assignee:
            Shalin Shekhar Mangar
            Reporter:
            Constantin Mitocaru
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development