Grokbase Groups Lucene dev June 2016
FAQ
[ https://issues.apache.org/jira/browse/SOLR-9165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Rowe updated SOLR-9165:
-----------------------------
     Fix Version/s: 6.1
Problems with the spellcheck component running search with cursor
------------------------------------------------------------------

Key: SOLR-9165
URL: https://issues.apache.org/jira/browse/SOLR-9165
Project: Solr
Issue Type: Bug
Components: spellchecker
Affects Versions: 5.2
Reporter: Yamileydis Veranes
Assignee: James Dyer
Fix For: 6.1

Attachments: SOLR-9165.patch, SOLR-9165.patch


I'm having some problems with the spellcheck component, specifically, running a search with cursors.
When I run the following query:
http://192.1.1.13:8983/solr/docs/search?q=insendio&shards.qt=/search&shards=192.1.1.14:8983/solr/docs,192.1.1.15:8983/solr/docs&fl=id&spellcheck=true&sort=score desc,id asc
the following collations are returned
<lst name="collations">
<lst name="collation">
<str name="collationQuery">incendio</str>
<int name="hits">485</int>
<lst name="misspellingsAndCorrections">
<str name="insendio">incendio</str>
</lst>
</lst>
</lst>
Instead, when I try to run the same query but this time using cursors
http://192.1.1.13:8983/solr/docs/search?q=insendio&shards.qt=/search&shards=192.1.1.14:8983/solr/docs,192.1.1.15:8983/solr/docs&fl=id&spellcheck=true&sort=score desc,id asc&cursorMark=*
no collations are returned
<bool name="correctlySpelled">false</bool><lst name="collations"/>
and the server trace the following exception message.
WARN - 2016-05-26 14:14:58.472; [docs shard2 core_node4 docs_shard2_replica1] org.apache.solr.spelling.SpellCheckCollator; Exception trying to re-query to check if a spell check possibility would return any hits.
org.apache.solr.common.SolrException: Cursor functionality requires a sort containing a uniqueKey field tie breaker
at org.apache.solr.search.CursorMark.<init>(CursorMark.java:93)
at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:189)
at org.apache.solr.spelling.SpellCheckCollator.collate(SpellCheckCollator.java:141)
at org.apache.solr.handler.component.SpellCheckComponent.addCollationsToResponse(SpellCheckComponent.java:237)
at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:202)
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:255)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:2064)
at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:654)
at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:450)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:227)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:196)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipseInstead.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:497)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:745)


--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org

Search Discussions

  • Steve Rowe (JIRA) at Jun 17, 2016 at 11:07 pm
    [ https://issues.apache.org/jira/browse/SOLR-9165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Steve Rowe reopened SOLR-9165:
    ------------------------------

    Reopening to backport to 6.0.2, 5.6 and 5.5.2.
    Problems with the spellcheck component running search with cursor
    ------------------------------------------------------------------

    Key: SOLR-9165
    URL: https://issues.apache.org/jira/browse/SOLR-9165
    Project: Solr
    Issue Type: Bug
    Components: spellchecker
    Affects Versions: 5.2
    Reporter: Yamileydis Veranes
    Assignee: James Dyer
    Fix For: 6.1

    Attachments: SOLR-9165.patch, SOLR-9165.patch


    I'm having some problems with the spellcheck component, specifically, running a search with cursors.
    When I run the following query:
    http://192.1.1.13:8983/solr/docs/search?q=insendio&shards.qt=/search&shards=192.1.1.14:8983/solr/docs,192.1.1.15:8983/solr/docs&fl=id&spellcheck=true&sort=score desc,id asc
    the following collations are returned
    <lst name="collations">
    <lst name="collation">
    <str name="collationQuery">incendio</str>
    <int name="hits">485</int>
    <lst name="misspellingsAndCorrections">
    <str name="insendio">incendio</str>
    </lst>
    </lst>
    </lst>
    Instead, when I try to run the same query but this time using cursors
    http://192.1.1.13:8983/solr/docs/search?q=insendio&shards.qt=/search&shards=192.1.1.14:8983/solr/docs,192.1.1.15:8983/solr/docs&fl=id&spellcheck=true&sort=score desc,id asc&cursorMark=*
    no collations are returned
    <bool name="correctlySpelled">false</bool><lst name="collations"/>
    and the server trace the following exception message.
    WARN - 2016-05-26 14:14:58.472; [docs shard2 core_node4 docs_shard2_replica1] org.apache.solr.spelling.SpellCheckCollator; Exception trying to re-query to check if a spell check possibility would return any hits.
    org.apache.solr.common.SolrException: Cursor functionality requires a sort containing a uniqueKey field tie breaker
    at org.apache.solr.search.CursorMark.<init>(CursorMark.java:93)
    at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:189)
    at org.apache.solr.spelling.SpellCheckCollator.collate(SpellCheckCollator.java:141)
    at org.apache.solr.handler.component.SpellCheckComponent.addCollationsToResponse(SpellCheckComponent.java:237)
    at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:202)
    at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:255)
    at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
    at org.apache.solr.core.SolrCore.execute(SolrCore.java:2064)
    at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:654)
    at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:450)
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:227)
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:196)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
    at org.eclipseInstead.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    at org.eclipse.jetty.server.Server.handle(Server.java:497)
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
    at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
    at java.lang.Thread.run(Thread.java:745)


    --
    This message was sent by Atlassian JIRA
    (v6.3.4#6332)

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: dev-help@lucene.apache.org
  • Steve Rowe (JIRA) at Jun 17, 2016 at 11:08 pm
    [ https://issues.apache.org/jira/browse/SOLR-9165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Steve Rowe resolved SOLR-9165.
    ------------------------------
            Resolution: Fixed
         Fix Version/s: 6.0.2
                        5.5.2
                        5.6
    Problems with the spellcheck component running search with cursor
    ------------------------------------------------------------------

    Key: SOLR-9165
    URL: https://issues.apache.org/jira/browse/SOLR-9165
    Project: Solr
    Issue Type: Bug
    Components: spellchecker
    Affects Versions: 5.2
    Reporter: Yamileydis Veranes
    Assignee: James Dyer
    Fix For: 5.6, 5.5.2, 6.0.2, 6.1

    Attachments: SOLR-9165.patch, SOLR-9165.patch


    I'm having some problems with the spellcheck component, specifically, running a search with cursors.
    When I run the following query:
    http://192.1.1.13:8983/solr/docs/search?q=insendio&shards.qt=/search&shards=192.1.1.14:8983/solr/docs,192.1.1.15:8983/solr/docs&fl=id&spellcheck=true&sort=score desc,id asc
    the following collations are returned
    <lst name="collations">
    <lst name="collation">
    <str name="collationQuery">incendio</str>
    <int name="hits">485</int>
    <lst name="misspellingsAndCorrections">
    <str name="insendio">incendio</str>
    </lst>
    </lst>
    </lst>
    Instead, when I try to run the same query but this time using cursors
    http://192.1.1.13:8983/solr/docs/search?q=insendio&shards.qt=/search&shards=192.1.1.14:8983/solr/docs,192.1.1.15:8983/solr/docs&fl=id&spellcheck=true&sort=score desc,id asc&cursorMark=*
    no collations are returned
    <bool name="correctlySpelled">false</bool><lst name="collations"/>
    and the server trace the following exception message.
    WARN - 2016-05-26 14:14:58.472; [docs shard2 core_node4 docs_shard2_replica1] org.apache.solr.spelling.SpellCheckCollator; Exception trying to re-query to check if a spell check possibility would return any hits.
    org.apache.solr.common.SolrException: Cursor functionality requires a sort containing a uniqueKey field tie breaker
    at org.apache.solr.search.CursorMark.<init>(CursorMark.java:93)
    at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:189)
    at org.apache.solr.spelling.SpellCheckCollator.collate(SpellCheckCollator.java:141)
    at org.apache.solr.handler.component.SpellCheckComponent.addCollationsToResponse(SpellCheckComponent.java:237)
    at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:202)
    at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:255)
    at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
    at org.apache.solr.core.SolrCore.execute(SolrCore.java:2064)
    at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:654)
    at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:450)
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:227)
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:196)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
    at org.eclipseInstead.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    at org.eclipse.jetty.server.Server.handle(Server.java:497)
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
    at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
    at java.lang.Thread.run(Thread.java:745)


    --
    This message was sent by Atlassian JIRA
    (v6.3.4#6332)

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: dev-help@lucene.apache.org
  • ASF subversion and git services (JIRA) at Jun 17, 2016 at 11:08 pm
    [ https://issues.apache.org/jira/browse/SOLR-9165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15337185#comment-15337185 ]

    ASF subversion and git services commented on SOLR-9165:
    -------------------------------------------------------

    Commit 7b79571d948365658e00f0bb431c082dedca1aaf in lucene-solr's branch refs/heads/branch_6_0 from jdyer1
    [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=7b79571 ]

    SOLR-9165: disable "cursorMark" when testing for valid SpellCheck Collations

    Problems with the spellcheck component running search with cursor
    ------------------------------------------------------------------

    Key: SOLR-9165
    URL: https://issues.apache.org/jira/browse/SOLR-9165
    Project: Solr
    Issue Type: Bug
    Components: spellchecker
    Affects Versions: 5.2
    Reporter: Yamileydis Veranes
    Assignee: James Dyer
    Fix For: 5.6, 6.1, 5.5.2, 6.0.2

    Attachments: SOLR-9165.patch, SOLR-9165.patch


    I'm having some problems with the spellcheck component, specifically, running a search with cursors.
    When I run the following query:
    http://192.1.1.13:8983/solr/docs/search?q=insendio&shards.qt=/search&shards=192.1.1.14:8983/solr/docs,192.1.1.15:8983/solr/docs&fl=id&spellcheck=true&sort=score desc,id asc
    the following collations are returned
    <lst name="collations">
    <lst name="collation">
    <str name="collationQuery">incendio</str>
    <int name="hits">485</int>
    <lst name="misspellingsAndCorrections">
    <str name="insendio">incendio</str>
    </lst>
    </lst>
    </lst>
    Instead, when I try to run the same query but this time using cursors
    http://192.1.1.13:8983/solr/docs/search?q=insendio&shards.qt=/search&shards=192.1.1.14:8983/solr/docs,192.1.1.15:8983/solr/docs&fl=id&spellcheck=true&sort=score desc,id asc&cursorMark=*
    no collations are returned
    <bool name="correctlySpelled">false</bool><lst name="collations"/>
    and the server trace the following exception message.
    WARN - 2016-05-26 14:14:58.472; [docs shard2 core_node4 docs_shard2_replica1] org.apache.solr.spelling.SpellCheckCollator; Exception trying to re-query to check if a spell check possibility would return any hits.
    org.apache.solr.common.SolrException: Cursor functionality requires a sort containing a uniqueKey field tie breaker
    at org.apache.solr.search.CursorMark.<init>(CursorMark.java:93)
    at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:189)
    at org.apache.solr.spelling.SpellCheckCollator.collate(SpellCheckCollator.java:141)
    at org.apache.solr.handler.component.SpellCheckComponent.addCollationsToResponse(SpellCheckComponent.java:237)
    at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:202)
    at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:255)
    at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
    at org.apache.solr.core.SolrCore.execute(SolrCore.java:2064)
    at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:654)
    at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:450)
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:227)
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:196)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
    at org.eclipseInstead.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    at org.eclipse.jetty.server.Server.handle(Server.java:497)
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
    at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
    at java.lang.Thread.run(Thread.java:745)


    --
    This message was sent by Atlassian JIRA
    (v6.3.4#6332)

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: dev-help@lucene.apache.org
  • ASF subversion and git services (JIRA) at Jun 17, 2016 at 11:08 pm
    [ https://issues.apache.org/jira/browse/SOLR-9165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15337184#comment-15337184 ]

    ASF subversion and git services commented on SOLR-9165:
    -------------------------------------------------------

    Commit b4d81f784136b6c3fd19940055b812862baa99ca in lucene-solr's branch refs/heads/branch_5x from jdyer1
    [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=b4d81f7 ]

    SOLR-9165: disable "cursorMark" when testing for valid SpellCheck Collations

    Problems with the spellcheck component running search with cursor
    ------------------------------------------------------------------

    Key: SOLR-9165
    URL: https://issues.apache.org/jira/browse/SOLR-9165
    Project: Solr
    Issue Type: Bug
    Components: spellchecker
    Affects Versions: 5.2
    Reporter: Yamileydis Veranes
    Assignee: James Dyer
    Fix For: 5.6, 6.1, 5.5.2, 6.0.2

    Attachments: SOLR-9165.patch, SOLR-9165.patch


    I'm having some problems with the spellcheck component, specifically, running a search with cursors.
    When I run the following query:
    http://192.1.1.13:8983/solr/docs/search?q=insendio&shards.qt=/search&shards=192.1.1.14:8983/solr/docs,192.1.1.15:8983/solr/docs&fl=id&spellcheck=true&sort=score desc,id asc
    the following collations are returned
    <lst name="collations">
    <lst name="collation">
    <str name="collationQuery">incendio</str>
    <int name="hits">485</int>
    <lst name="misspellingsAndCorrections">
    <str name="insendio">incendio</str>
    </lst>
    </lst>
    </lst>
    Instead, when I try to run the same query but this time using cursors
    http://192.1.1.13:8983/solr/docs/search?q=insendio&shards.qt=/search&shards=192.1.1.14:8983/solr/docs,192.1.1.15:8983/solr/docs&fl=id&spellcheck=true&sort=score desc,id asc&cursorMark=*
    no collations are returned
    <bool name="correctlySpelled">false</bool><lst name="collations"/>
    and the server trace the following exception message.
    WARN - 2016-05-26 14:14:58.472; [docs shard2 core_node4 docs_shard2_replica1] org.apache.solr.spelling.SpellCheckCollator; Exception trying to re-query to check if a spell check possibility would return any hits.
    org.apache.solr.common.SolrException: Cursor functionality requires a sort containing a uniqueKey field tie breaker
    at org.apache.solr.search.CursorMark.<init>(CursorMark.java:93)
    at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:189)
    at org.apache.solr.spelling.SpellCheckCollator.collate(SpellCheckCollator.java:141)
    at org.apache.solr.handler.component.SpellCheckComponent.addCollationsToResponse(SpellCheckComponent.java:237)
    at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:202)
    at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:255)
    at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
    at org.apache.solr.core.SolrCore.execute(SolrCore.java:2064)
    at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:654)
    at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:450)
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:227)
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:196)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
    at org.eclipseInstead.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    at org.eclipse.jetty.server.Server.handle(Server.java:497)
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
    at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
    at java.lang.Thread.run(Thread.java:745)


    --
    This message was sent by Atlassian JIRA
    (v6.3.4#6332)

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: dev-help@lucene.apache.org
  • ASF subversion and git services (JIRA) at Jun 17, 2016 at 11:08 pm
    [ https://issues.apache.org/jira/browse/SOLR-9165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15337183#comment-15337183 ]

    ASF subversion and git services commented on SOLR-9165:
    -------------------------------------------------------

    Commit 845f57d16ad1b9f6b499d8597f2fb1edbd571474 in lucene-solr's branch refs/heads/branch_5_5 from jdyer1
    [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=845f57d ]

    SOLR-9165: disable "cursorMark" when testing for valid SpellCheck Collations

    Problems with the spellcheck component running search with cursor
    ------------------------------------------------------------------

    Key: SOLR-9165
    URL: https://issues.apache.org/jira/browse/SOLR-9165
    Project: Solr
    Issue Type: Bug
    Components: spellchecker
    Affects Versions: 5.2
    Reporter: Yamileydis Veranes
    Assignee: James Dyer
    Fix For: 5.6, 6.1, 5.5.2, 6.0.2

    Attachments: SOLR-9165.patch, SOLR-9165.patch


    I'm having some problems with the spellcheck component, specifically, running a search with cursors.
    When I run the following query:
    http://192.1.1.13:8983/solr/docs/search?q=insendio&shards.qt=/search&shards=192.1.1.14:8983/solr/docs,192.1.1.15:8983/solr/docs&fl=id&spellcheck=true&sort=score desc,id asc
    the following collations are returned
    <lst name="collations">
    <lst name="collation">
    <str name="collationQuery">incendio</str>
    <int name="hits">485</int>
    <lst name="misspellingsAndCorrections">
    <str name="insendio">incendio</str>
    </lst>
    </lst>
    </lst>
    Instead, when I try to run the same query but this time using cursors
    http://192.1.1.13:8983/solr/docs/search?q=insendio&shards.qt=/search&shards=192.1.1.14:8983/solr/docs,192.1.1.15:8983/solr/docs&fl=id&spellcheck=true&sort=score desc,id asc&cursorMark=*
    no collations are returned
    <bool name="correctlySpelled">false</bool><lst name="collations"/>
    and the server trace the following exception message.
    WARN - 2016-05-26 14:14:58.472; [docs shard2 core_node4 docs_shard2_replica1] org.apache.solr.spelling.SpellCheckCollator; Exception trying to re-query to check if a spell check possibility would return any hits.
    org.apache.solr.common.SolrException: Cursor functionality requires a sort containing a uniqueKey field tie breaker
    at org.apache.solr.search.CursorMark.<init>(CursorMark.java:93)
    at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:189)
    at org.apache.solr.spelling.SpellCheckCollator.collate(SpellCheckCollator.java:141)
    at org.apache.solr.handler.component.SpellCheckComponent.addCollationsToResponse(SpellCheckComponent.java:237)
    at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:202)
    at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:255)
    at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
    at org.apache.solr.core.SolrCore.execute(SolrCore.java:2064)
    at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:654)
    at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:450)
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:227)
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:196)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
    at org.eclipseInstead.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    at org.eclipse.jetty.server.Server.handle(Server.java:497)
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
    at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
    at java.lang.Thread.run(Thread.java:745)


    --
    This message was sent by Atlassian JIRA
    (v6.3.4#6332)

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: dev-help@lucene.apache.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categorieslucene
postedJun 17, '16 at 11:05p
activeJun 17, '16 at 11:08p
posts6
users1
websitelucene.apache.org

People

Translate

site design / logo © 2019 Grokbase