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 3F71818589 for ; Wed, 8 Jul 2015 08:44:33 +0000 (UTC) Received: (qmail 25415 invoked by uid 500); 8 Jul 2015 08:44:29 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 25346 invoked by uid 500); 8 Jul 2015 08:44:29 -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 25330 invoked by uid 99); 8 Jul 2015 08:44:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2015 08:44:29 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gajju3588@gmail.com designates 209.85.213.174 as permitted sender) Received: from [209.85.213.174] (HELO mail-ig0-f174.google.com) (209.85.213.174) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2015 08:42:15 +0000 Received: by iggp10 with SMTP id p10so16784886igg.0 for ; Wed, 08 Jul 2015 01:43:17 -0700 (PDT) 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=Vi6+sNKle4Z+dBDYbTjMcW1dsv+dHg85X1bqHr5tBYM=; b=D5SrJx+HGfsG27IlrITuVYZCOlHTogKKbDgpuSHBi63v2D7Rb5tl+OJp3+EmbdGIs+ KAWdjxMb3KZYpyOr79iO1pJCMSNe2pFAnsEjNi/J93StBrDntWHXEwy9dsL4RgZ01iJi tw3spzPuCLuUr14Vwm2PmaKH8UmmdvWz+frt31dQjuRkxdEctgC1PKfjmWfqmH03AcVy GaEM221OcaAvP1dz0U0TUGbzZF+DhQ86mLoOgB9MRJ7K5c3Jb3u2+/GtJBqIZ7Px3T0q zN96s//Hl0oo2Z5HDOSBB5dNDAnX7OFlxJziktU0IRu8Zk7vS0i4B1OuQhYxULIf3fkU lZjg== X-Received: by 10.107.13.201 with SMTP id 192mr15004049ion.70.1436344997512; Wed, 08 Jul 2015 01:43:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.76.200 with HTTP; Wed, 8 Jul 2015 01:42:58 -0700 (PDT) In-Reply-To: References: From: Gajendra Dadheech Date: Wed, 8 Jul 2015 14:12:58 +0530 Message-ID: Subject: Re: Indexed field to schema field To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a113fd5e05a0d96051a5921ec X-Virus-Checked: Checked by ClamAV on apache.org --001a113fd5e05a0d96051a5921ec Content-Type: text/plain; charset=UTF-8 I wish to do it in code so schema browser is lesser of an option. Use case is : I wish to boost particular fields while matching, for that i need to know My field to Solr field mapping. SO that i can put that in the query. Thanks and regards, Gajendra Dadheech On Tue, Jul 7, 2015 at 9:23 PM, Erick Erickson wrote: > Feels like an XY problem. Why do you want to do this? What's > the use-case? Perhaps there's an alternative approach that > satisfies the need. > > Best, > Erick > > On Tue, Jul 7, 2015 at 4:21 AM, Mikhail Khludnev > wrote: > > Just an idea, Solr Admin/Schema Browser reports some info like this, > hence, > > you can trace the way in which it does it. > > > > On Tue, Jul 7, 2015 at 10:34 AM, Gajendra Dadheech > > wrote: > > > >> Hi, > >> > >> Can i some how translate fields which i read from > >> newSearcher.getAtomicReader().fields(), to schema fields ? Does solr > expose > >> any method to do this translation ? Alternative approach i am thinking > will > >> involved lots of regex computation as the fields would be _string, > _float > >> etc and i would have to remove those suffixes, this becomes little > tricky > >> when fields are dynamic. > >> > >> Thanks and regards, > >> Gajendra Dadheech > >> > > > > > > > > -- > > Sincerely yours > > Mikhail Khludnev > > Principal Engineer, > > Grid Dynamics > > > > > > > --001a113fd5e05a0d96051a5921ec--