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 22376200D61 for ; Tue, 19 Dec 2017 14:31:41 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 20B0F160C1B; Tue, 19 Dec 2017 13:31:41 +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 63B8B160C18 for ; Tue, 19 Dec 2017 14:31:40 +0100 (CET) Received: (qmail 61576 invoked by uid 500); 19 Dec 2017 13:31:38 -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 61564 invoked by uid 99); 19 Dec 2017 13:31:38 -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; Tue, 19 Dec 2017 13:31:38 +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 A53BAC5218 for ; Tue, 19 Dec 2017 13:31:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.532 X-Spam-Level: * X-Spam-Status: No, score=1.532 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_BRBL_LASTEXT=1.644, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=elyograg.org Received: from mx1-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 KpPu8BClCPsL for ; Tue, 19 Dec 2017 13:31:37 +0000 (UTC) Received: from frodo.elyograg.org (frodo.elyograg.org [166.70.79.219]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 46A1D5F297 for ; Tue, 19 Dec 2017 13:31:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by frodo.elyograg.org (Postfix) with ESMTP id E7D879A6 for ; Tue, 19 Dec 2017 06:31:34 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=elyograg.org; h= content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:subject:subject:received :received; s=mail; t=1513690294; bh=tMmisjUKLL1xixDmG2IGZ/JIqPBB paM3vuMkqp0/fFs=; b=ods+WIrDXqavbdwg3TMYUu7IOP3ohk1QqX+es7fSFbfr zuQ6LUQQJbGTnN7zeyyZ4OVHGgDEiZFNqdVNMfOr5XpZFqdSYG6lB6v9zFHz5Vcm L3U+YmID/JTqgix+Db8q5WYt452EGrze27f92ZU8U0oJi1zdxMGIguH3yq/raqQ= X-Virus-Scanned: Debian amavisd-new at frodo.elyograg.org Received: from frodo.elyograg.org ([127.0.0.1]) by localhost (frodo.elyograg.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id dxa8CehKyAZc for ; Tue, 19 Dec 2017 06:31:34 -0700 (MST) Received: from [192.168.1.111] (111.int.elyograg.org [192.168.1.111]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: elyograg@elyograg.org) by frodo.elyograg.org (Postfix) with ESMTPSA id 5B47799F for ; Tue, 19 Dec 2017 06:31:34 -0700 (MST) Subject: Re: index fields with custom gaps between terms To: solr-user@lucene.apache.org References: From: Shawn Heisey Message-ID: <54be513c-81ea-c401-d449-460fa87054bd@elyograg.org> Date: Tue, 19 Dec 2017 06:31:35 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit archived-at: Tue, 19 Dec 2017 13:31:41 -0000 On 12/19/2017 4:16 AM, Amin Raeiszadeh wrote: > i solve this problem by developing of DocumentBuilder.toDocument() > and DocumentBuilder.addField() functions.i don't use multiValue feature > and in shcema i change the condition of check for multi value > fields(skip it in colde) > then in necessary position i put my custom gap as a value for textField. > > now i have a question in schema. why we set a field as multi value? > in other word what kind of situation caused use of this feature because > i think it was possible to let to the developer to add multiple value for a > field then it will be multi value or not then it will be single value. If you have multiValued set to false and try to add more than one value to a field when you index, the indexing will fail with an error message in the log. Multiple values is different than multiple terms in a solr.TextField type. When a field is multiValued and is populated, the search results will have an array for that field instead of a single value, because multiple values may be present. Thanks, Shawn