Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B80D618AE4 for ; Thu, 18 Feb 2016 07:22:44 +0000 (UTC) Received: (qmail 86649 invoked by uid 500); 18 Feb 2016 07:22:41 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 86574 invoked by uid 500); 18 Feb 2016 07:22:41 -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 86562 invoked by uid 99); 18 Feb 2016 07:22:40 -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; Thu, 18 Feb 2016 07:22:40 +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 7F788C0D74 for ; Thu, 18 Feb 2016 07:22:40 +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-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id y7EFRfxQPdy6 for ; Thu, 18 Feb 2016 07:22:39 +0000 (UTC) Received: from mail-ob0-f178.google.com (mail-ob0-f178.google.com [209.85.214.178]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 599DD5F1AE for ; Thu, 18 Feb 2016 07:22:39 +0000 (UTC) Received: by mail-ob0-f178.google.com with SMTP id xk3so53949205obc.2 for ; Wed, 17 Feb 2016 23:22:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=BL9S94LN6LLd8ZFUamUoRKD7oifqdnAVaKwDgl8ZRCo=; b=diL76vW+cSlud+PYYV+jWZPm0kYIr83OsvhzuqZ5UU1S+1cFdSVQLt7x7Egy8u4iQm jNwk5oR1vOkmCnejnn7eYKh9v80TvL2GkAT8JneU69V+l8RrBXTFjbk/ItQw4PuPKOMK M5E/hL79xwmjtEGPYrahwV/5bruQzErL0NgOylDyQwXOoOHoQLK7EYPdc1zy4Ev4ycL/ JyAVHb7QLB5LC3pfwHAoSCN2MmotOHyYqmX26lTyS5z9yMSq7MO+WyrZtlK04KKLC8QW nZLd2E6rzdxM8NMyfx19/ysUq/eeeIb/9Wgn1wr16MaED8QpQM1snM89s7PAMbIE6M2r Le3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=BL9S94LN6LLd8ZFUamUoRKD7oifqdnAVaKwDgl8ZRCo=; b=g7jcAhuq+zYHjVgttHk7pe3OxrTCtN3ks4nsq4qDIwXMIOYI5qL2xXzYS4344FE+E6 EJyCHu81sMr98UQjTHIMWqUIq0UKpuh+HiSNZ2JKlbiVUkFhOutud6I3H+w6AD1DhBVD +5waCw82Ekx5W0vFBnE3Rzg/W6SBvnxlPctIVrJPKPQ7e51oKrLHvykBRYui52nabESS RbO02D6SVbKspWo56L+398Jji6aoDlGGtEKQeVmLRWouqG+q8qEw9f3LUHmq2FAXPsO0 FnLUN6dwesS94fQlh7epEtFKFq+RnkyM762FI8g0VrBzGfsJBty9W4HPcUFq8xww2LCP MpAA== X-Gm-Message-State: AG10YOTL55qxnZr4DcX6QViQu+ZoTueg6o9zrxuV/1Ymg86q3A/kZHerWe0oYcqUTafThKojkAGLPtGTnSdcUg== X-Received: by 10.202.202.139 with SMTP id a133mr4715628oig.28.1455780158712; Wed, 17 Feb 2016 23:22:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.196.149 with HTTP; Wed, 17 Feb 2016 23:21:59 -0800 (PST) In-Reply-To: References: From: Anil Date: Thu, 18 Feb 2016 12:51:59 +0530 Message-ID: Subject: Re: Get one fragment of text of field To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a11c186143b32b1052c063bc2 --001a11c186143b32b1052c063bc2 Content-Type: text/plain; charset=UTF-8 Thanks Binoy. index should happen on everything. But retrial/fetch should limit the characters. is it possible ? Regards, Anil On 18 February 2016 at 12:24, Binoy Dalal wrote: > If you are not particular about what part of the field is returned you can > create copy fields and set a limit on those to store only the number of > characters you want. > > > > This will copy over the first 500 chars of the contents of your SRC field > to your dest field. > Anything beyond this will be truncated. > > On Thu, 18 Feb 2016, 12:00 Anil wrote: > > > Hi , > > > > we have around 30 fields in solr document. and we search for text in all > > fields (by creating a record field with copy field). > > > > few fields have huge text .. order of mbs. how i can get only a fragment > > of fields in a configurable way. > > > > we have to display each field content on UI. so its must to get content > of > > each field. > > > > for now, i am fetching the content from solr and truncating it in my > code. > > but it has poor performance. > > > > is there any way to achieve fragmentation (not a highlight fragmentation) > > in solr ? please advice. > > > > Regards, > > Anil > > > -- > Regards, > Binoy Dalal > --001a11c186143b32b1052c063bc2--