Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BC0AD200B48 for ; Mon, 4 Jul 2016 06:30:53 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BAA21160A71; Mon, 4 Jul 2016 04:30:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DD5CB160A6B for ; Mon, 4 Jul 2016 06:30:52 +0200 (CEST) Received: (qmail 96504 invoked by uid 500); 4 Jul 2016 04:30:50 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 96492 invoked by uid 99); 4 Jul 2016 04:30:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jul 2016 04:30:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 289C0C829A for ; Mon, 4 Jul 2016 04:30:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 98VSfd2hCU_p for ; Mon, 4 Jul 2016 04:30:49 +0000 (UTC) Received: from mail-it0-f42.google.com (mail-it0-f42.google.com [209.85.214.42]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 2B8D05FAEB for ; Mon, 4 Jul 2016 04:30:48 +0000 (UTC) Received: by mail-it0-f42.google.com with SMTP id f6so55675041ith.0 for ; Sun, 03 Jul 2016 21:30:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=j4ZAHup36qC5VOVJgfSI4MCVc0ba65Pa6qip5sUFlx0=; b=Z6cZ7cz68zLa3bJ5cQa0Sfi0kaymx2ep2ZZQQTSTcYpGRZjaqKOWByIEPLVoHjoWLQ WTNkWRu2QlT0ik/4QgU0SqY4JKAeNSk4HSxUZoML7kBscRXkAZa254MgxOzC7qb7SQ4H 3xpJvjG2APnJZElro/gDWNpNFLYTHN+rKkoRwvmzcNCt30anMejQkGMPnP5Fj6/AnUYM 7aIoEalWgk25DMpOUak5VU5Ca0mhJoV8bmDQi6Ij/Vko29ixRcF+S8PkFmWk+etfZvDs TFBLPPH8Wotux4WHMUA6hSmDvyOSc/ZvHx0aeOu2WTUWyibnD4HMyyddGoEPv6X0imfy XRcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=j4ZAHup36qC5VOVJgfSI4MCVc0ba65Pa6qip5sUFlx0=; b=ExFgEGwiyqa78i/5UI1PwR7/FdbU8hSGWkpZST4WVVfgGkeU3DxMIOOhEy5ovSKbt0 b5pcQlew3CDhN8rDZHEzk1Q1zPlHyb++XlA2RZldWuT4JuoXIJqWgCX4dkjLxZVCd3ni LoJOI1chitQWIktY0PU/AXA/40J5ccN0Ela3XNOX1QVbLvG+xK6RW4aULLVfHJeq1lDq ucK3otVOuubreIm3dEpl2DyN22jczHZQK1PAhNoYF/YnUk78+BzaA2eTf6SVNwxZFo1+ QgdxYsB2YmgWlHGUt2X3ej4OTmVUK3wFZB4xhhyx2SOJMc+OSg5o+7BcDEtFkHfOMf4X ev/g== X-Gm-Message-State: ALyK8tICe4aQaZZVLn3ZiVG1YHhbKEFgkO/REQpfldktZ3Q5mJehc1GVTzAkfUlQoNk0v27Fk4wA0uei40dJOQ== X-Received: by 10.36.73.70 with SMTP id z67mr7800975ita.33.1467606641299; Sun, 03 Jul 2016 21:30:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.9.65 with HTTP; Sun, 3 Jul 2016 21:30:40 -0700 (PDT) From: Zheng Lin Edwin Yeo Date: Mon, 4 Jul 2016 12:30:40 +0800 Message-ID: Subject: Error when highlighting on multiValued fields To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a113a7ee886569b0536c7cc6d archived-at: Mon, 04 Jul 2016 04:30:53 -0000 --001a113a7ee886569b0536c7cc6d Content-Type: text/plain; charset=UTF-8 Hi, I'm getting this error when I tried to do highlighting search on a multiValued field. "error":{ "metadata":[ "error-class","org.apache.solr.common.SolrException", "root-error-class","org.apache.lucene.search.highlight.InvalidTokenOffsetsException"], "msg":"org.apache.lucene.search.highlight.InvalidTokenOffsetsException: Token eee1 exceeds length of provided text sized 3", "trace":"org.apache.solr.common.SolrException: org.apache.lucene.search.highlight.InvalidTokenOffsetsException: Token eee1 exceeds length of provided text sized 3\r\n\tat org.apache.solr.highlight.DefaultSolrHighlighter.doHighlightingByHighlighter(DefaultSolrHighlighter.java:614)\r\n\tat org.apache.solr.highlight.DefaultSolrHighlighter.doHighlightingOfField(DefaultSolrHighlighter.java:448)\r\n\tat org.apache.solr.highlight.DefaultSolrHighlighter.doHighlighting(DefaultSolrHighlighter.java:410)\r\n\tat org.apache.solr.handler.component.HighlightComponent.process(HighlightComponent.java:142)\r\n\tat org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:293)\r\n\tat org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:156)\r\n\tat org.apache.solr.core.SolrCore.execute(SolrCore.java:2036)\r\n\tat org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:657)\r\n\tat org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:464)\r\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:257)\r\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:208)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\r\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1160)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1092)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\r\n\tat org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)\r\n\tat org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)\r\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)\r\n\tat org.eclipse.jetty.server.Server.handle(Server.java:518)\r\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)\r\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)\r\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)\r\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)\r\n\tat org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)\r\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246)\r\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: org.apache.lucene.search.highlight.InvalidTokenOffsetsException: Token edm1 exceeds length of provided text sized 3\r\n\tat org.apache.lucene.search.highlight.Highlighter.getBestTextFragments(Highlighter.java:225)\r\n\tat org.apache.solr.highlight.DefaultSolrHighlighter.doHighlightingByHighlighter(DefaultSolrHighlighter.java:602)\r\n\t... 34 more\r\n", "code":500}} Below is my configuration for highlight. none 10 json true text id, title, subject, content_type, last_modified, score on id, title, subject, content, tag true true 200 100000 true true signature true 100 Below is my setting for the multiValued field in question I got this error when there are 3 or more values in the multiValued field. The fieldType for the field is "String". What could be the error? I'm using Solr 6.1.0 Regards, Edwin --001a113a7ee886569b0536c7cc6d--