Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 3.1, 4.0-ALPHA
    • Labels:
      None
    • Environment:

      Gentoo Linux, Solr 1.4, tomcat webserver

      Description

      moreLikeThis searchcomponent currently has no way to debug or see information on the process. This means that if moreLikeThis suggests another document there is no way to actually view why it picked that to hone the searching. Adding an explain would be extremely useful in determining the reasons why solr is recommending the items.

      1. SOLR-860.patch
        10 kB
        Koji Sekiguchi
      2. SOLR-860.patch
        9 kB
        Koji Sekiguchi
      3. SOLR-860.patch
        8 kB
        Koji Sekiguchi
      4. SOLR-860.patch
        8 kB
        Koji Sekiguchi

        Activity

        Hide
        Shalin Shekhar Mangar added a comment -

        Marking for 1.5

        Show
        Shalin Shekhar Mangar added a comment - Marking for 1.5
        Hide
        Koji Sekiguchi added a comment -

        At minimum, I'd like to see how the BooleanQuery constructed by mlt look like. Can ResponseBuilder.addDebugInfo() be used for it?

        Show
        Koji Sekiguchi added a comment - At minimum, I'd like to see how the BooleanQuery constructed by mlt look like. Can ResponseBuilder.addDebugInfo() be used for it?
        Hide
        Koji Sekiguchi added a comment -

        With the attached patch, BooleanQueries constructed by MLT and MLT helper function can be seen in debug area.

        sample request and response:

        http://localhost:8983/solr/select/?q=solr+ipod&indent=on&mlt=on&mlt.fl=features&mlt.mintf=1&mlt.count=2&debugQuery=on&wt=json
        
        "debug":{
          "moreLikeThis":{
            "IW-02":{
               "rawMLTQuery":"",
               "boostedMLTQuery":"",
               "realMLTQuery":"+() -id:IW-02"},
            "SOLR1000":{
               "rawMLTQuery":"",
               "boostedMLTQuery":"",
               "realMLTQuery":"+() -id:SOLR1000"},
            "F8V7067-APL-KIT":{
               "rawMLTQuery":"",
               "boostedMLTQuery":"",
               "realMLTQuery":"+() -id:F8V7067-APL-KIT"},
            "MA147LL/A":{
               "rawMLTQuery":"features:2 features:0 features:lcd features:x features:3",
               "boostedMLTQuery":"features:2 features:0 features:lcd features:x features:3",
               "realMLTQuery":"+(features:2 features:0 features:lcd features:x features:3) -id:MA147LL/A"}},
            ....
        }
        
        Show
        Koji Sekiguchi added a comment - With the attached patch, BooleanQueries constructed by MLT and MLT helper function can be seen in debug area. sample request and response: http: //localhost:8983/solr/select/?q=solr+ipod&indent=on&mlt=on&mlt.fl=features&mlt.mintf=1&mlt.count=2&debugQuery=on&wt=json "debug" :{ "moreLikeThis" :{ "IW-02" :{ "rawMLTQuery" :"", "boostedMLTQuery" :"", "realMLTQuery" : "+() -id:IW-02" }, "SOLR1000" :{ "rawMLTQuery" :"", "boostedMLTQuery" :"", "realMLTQuery" : "+() -id:SOLR1000" }, "F8V7067-APL-KIT" :{ "rawMLTQuery" :"", "boostedMLTQuery" :"", "realMLTQuery" : "+() -id:F8V7067-APL-KIT" }, "MA147LL/A" :{ "rawMLTQuery" : "features:2 features:0 features:lcd features:x features:3" , "boostedMLTQuery" : "features:2 features:0 features:lcd features:x features:3" , "realMLTQuery" : "+(features:2 features:0 features:lcd features:x features:3) -id:MA147LL/A" }}, .... }
        Hide
        Lance Norskog added a comment - - edited

        +1. Very worthwhile patch!

        Show
        Lance Norskog added a comment - - edited +1. Very worthwhile patch!
        Hide
        Hoss Man added a comment -

        Bulk updating 240 Solr issues to set the Fix Version to "next" per the process outlined in this email...

        http://mail-archives.apache.org/mod_mbox/lucene-dev/201005.mbox/%3Calpine.DEB.1.10.1005251052040.24672@radix.cryptio.net%3E

        Selection criteria was "Unresolved" with a Fix Version of 1.5, 1.6, 3.1, or 4.0. email notifications were suppressed.

        A unique token for finding these 240 issues in the future: hossversioncleanup20100527

        Show
        Hoss Man added a comment - Bulk updating 240 Solr issues to set the Fix Version to "next" per the process outlined in this email... http://mail-archives.apache.org/mod_mbox/lucene-dev/201005.mbox/%3Calpine.DEB.1.10.1005251052040.24672@radix.cryptio.net%3E Selection criteria was "Unresolved" with a Fix Version of 1.5, 1.6, 3.1, or 4.0. email notifications were suppressed. A unique token for finding these 240 issues in the future: hossversioncleanup20100527
        Hide
        Koji Sekiguchi added a comment -

        Just updated the patch for current trunk as per a user request.

        Show
        Koji Sekiguchi added a comment - Just updated the patch for current trunk as per a user request.
        Hide
        Darren Govoni added a comment -

        Thanks for this. Really appreciate it.

        Show
        Darren Govoni added a comment - Thanks for this. Really appreciate it.
        Hide
        Darren Govoni added a comment -

        I'm getting this error when trying the patch.

        can't find file to patch at input line 5
        Perhaps you used the wrong -p or --strip option?
        The text leading up to this was:
        --------------------------

        Index: src/java/org/apache/solr/handler/component/MoreLikeThisComponent.java
        ===================================================================
        — src/java/org/apache/solr/handler/component/MoreLikeThisComponent.java (revision 1026713)
        +++ src/java/org/apache/solr/handler/component/MoreLikeThisComponent.java (working copy)
        --------------------------
        File to patch:
        Show
        Darren Govoni added a comment - I'm getting this error when trying the patch. can't find file to patch at input line 5 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- Index: src/java/org/apache/solr/handler/component/MoreLikeThisComponent.java =================================================================== — src/java/org/apache/solr/handler/component/MoreLikeThisComponent.java (revision 1026713) +++ src/java/org/apache/solr/handler/component/MoreLikeThisComponent.java (working copy) -------------------------- File to patch:
        Hide
        Koji Sekiguchi added a comment -

        I'm getting this error when trying the patch.

        I couldn't reproduce it. See below for my operation:

        # check out lucene+solr from trunk
        $ svn co http://svn.apache.org/repos/asf/lucene/dev/trunk SOLR-860
        # change directory
        $ cd SOLR-860/solr
        # apply the attached patch
        $ patch -p0 < SOLR-860.patch
        patching file src/java/org/apache/solr/handler/component/MoreLikeThisComponent.java
        patching file src/java/org/apache/solr/handler/MoreLikeThisHandler.java
        
        Show
        Koji Sekiguchi added a comment - I'm getting this error when trying the patch. I couldn't reproduce it. See below for my operation: # check out lucene+solr from trunk $ svn co http://svn.apache.org/repos/asf/lucene/dev/trunk SOLR-860 # change directory $ cd SOLR-860/solr # apply the attached patch $ patch -p0 < SOLR-860.patch patching file src/java/org/apache/solr/handler/component/MoreLikeThisComponent.java patching file src/java/org/apache/solr/handler/MoreLikeThisHandler.java
        Hide
        Koji Sekiguchi added a comment -

        New patch. It outputs explanations for each mlt.

        Show
        Koji Sekiguchi added a comment - New patch. It outputs explanations for each mlt.
        Hide
        Koji Sekiguchi added a comment -

        New patch. I added a test to check the debug output for mlt. I'll commit shortly.

        Show
        Koji Sekiguchi added a comment - New patch. I added a test to check the debug output for mlt. I'll commit shortly.
        Hide
        Koji Sekiguchi added a comment -

        trunk: Committed revision 1064735.
        3x: Committed revision 1064775.

        Show
        Koji Sekiguchi added a comment - trunk: Committed revision 1064735. 3x: Committed revision 1064775.
        Hide
        Grant Ingersoll added a comment -

        Bulk close for 3.1.0 release

        Show
        Grant Ingersoll added a comment - Bulk close for 3.1.0 release

          People

          • Assignee:
            Koji Sekiguchi
            Reporter:
            Jeff
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development