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 7F7A318DAA for ; Mon, 22 Feb 2016 06:19:09 +0000 (UTC) Received: (qmail 49092 invoked by uid 500); 22 Feb 2016 06:19:05 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 48883 invoked by uid 500); 22 Feb 2016 06:19:05 -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 48861 invoked by uid 99); 22 Feb 2016 06:19:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Feb 2016 06:19:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id F1A111A0643 for ; Mon, 22 Feb 2016 06:19:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-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: spamd2-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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id LLtqgSzVwGCw for ; Mon, 22 Feb 2016 06:19:03 +0000 (UTC) Received: from mail-ob0-f179.google.com (mail-ob0-f179.google.com [209.85.214.179]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id B2BE55F3F5 for ; Mon, 22 Feb 2016 06:19:02 +0000 (UTC) Received: by mail-ob0-f179.google.com with SMTP id gc3so155465927obb.3 for ; Sun, 21 Feb 2016 22:19:02 -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=DvHKyQEotLn9cnyOuwoniyuO//+UH8e/gFjA4dghCZo=; b=YXF6gKFXShI7wErnthWvnYSdLVaKlFcwLi3Z8nyTH9josxSkNuZ0YBZbs19HpRRnVT z6CoVIawCFhJCDKHsek3s89lGTsaqDpN3ypmiQtvsPFBpU22SaX04STSz6WeA2d8UngO N0vK1Nl/TWRPA3W5ZPyKgybGOwNr9vVEAkb/03SPcVZ58QIS89qFYDZUPJnooa9xBs+Z yUlw3WMRMktUp/WzVBvlpck+WyDm9hCk1hi2DIrd5FQkTSJ8Us2Q+eKQRDnZMgtdSk77 7kxab4ymSylZmlyLmAtfgZUtfnQ+UpHcdJE0kQDawO05sSVV37zVrnt7j526XewL/pyz lv1w== 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=DvHKyQEotLn9cnyOuwoniyuO//+UH8e/gFjA4dghCZo=; b=c/xtXckcoFKzxgRuzI3iSqpYbf+2jPrD1NpZt82lPLRot89VE94eoBrweFlphHz2tO rJ3xgpBWwv1fTO5peDRkGIvwdz5IKjwSATg1L9NhTDlk7+BW6aCLz+c/DyBWiYFuoV03 WCP+ZDXuEkkvbDzsVfyie0JnqjwLV7g+neSOGDt338Fz++Py/AYaQfrvutfaFMIRXqK+ gmaDU0Lio5PXnISD38yKAiQmqm3QkD1QuJZ9l2FojsX3FxQh8uVJ9BA8/hIffqPnpTuD rmDbUSJ2f5mc68yoD7OLyZhITMyYAQHw8dWWn/AvTWf0GDxTxTBVslJpzCuyKR4Gm6zb 3+kw== X-Gm-Message-State: AG10YORP94c5qQUtzBJh43j8AF/o2W6kNi+cqS5NuoqnLzOJnqStCV6Y2taNTT4ERS8kLAZQD85k3hvlsE3EqQ== X-Received: by 10.182.148.39 with SMTP id tp7mr21436145obb.87.1456121935232; Sun, 21 Feb 2016 22:18:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.196.149 with HTTP; Sun, 21 Feb 2016 22:18:15 -0800 (PST) In-Reply-To: References: <1455797081.156046.524833242.751DBB13@webmail.messagingengine.com> <56C5D661.60902@elyograg.org> From: Anil Date: Mon, 22 Feb 2016 11:48:15 +0530 Message-ID: Subject: Re: Facet Filter To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=089e0139fd0cb30316052c55ce09 --089e0139fd0cb30316052c55ce09 Content-Type: text/plain; charset=UTF-8 HI Shawn, solr Documentation says docValues=true/false works for only few fields. will that work on Text field ? Copy from the reference guide - DocValues are only available for specific field types. The types chosen determine the underlying Lucene docValue type that will be used. The available Solr field types are: StrField and UUIDField. If the field is single-valued (i.e., multi-valued is false), Lucene will use the SORTED type. If the field is multi-valued, Lucene will use the SORTED_SET type. If you have already indexed data into your Solr index, you will need to completely re-index your content after changing your field definitions in schema.xml in order to successfully use docValues. Any Trie* numeric fields and EnumField. If the field is single-valued (i.e., multi-valued is false), Lucene will use the NUMERIC type. If the field is multi-valued, Lucene will use the SORTED_SET type. Regards, Anil On 19 February 2016 at 08:49, Anil wrote: > Thanks Shawn. This really helps. we are using 4.10.3 now.. will look into > 5.4.1. Thanks. > > Regards, > Anil > > On 18 February 2016 at 20:04, Shawn Heisey wrote: > >> On 2/18/2016 7:12 AM, Anil wrote: >> > Thank you, i just checked in 5.1. >> > >> > as facet fields has to be Strings and cannot be tockenized. is there any >> > way to search on case insensitive search on this field (not in a facet >> > filter scenario). >> >> If you configure docValues on the field in schema.xml and reindex, then >> the returned facets will be the original input values even if the field >> is tokenized, just as if you had used a string type without docValues. >> This should allow you to use one field for queries *and* facets. >> >> The reindex *is* required after adding docValues, and the index will be >> larger. >> >> Note that using 5.1 isn't recommended at this point. You should use the >> latest version available. Currently that's 5.4.1, but soon it will be >> 5.5. >> >> Thanks, >> Shawn >> >> > --089e0139fd0cb30316052c55ce09--