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 3C1F2200CAD for ; Tue, 6 Jun 2017 00:56:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3A93E160BE1; Mon, 5 Jun 2017 22:56:49 +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 5AD8A160BD4 for ; Tue, 6 Jun 2017 00:56:48 +0200 (CEST) Received: (qmail 29981 invoked by uid 500); 5 Jun 2017 22:56:46 -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 29969 invoked by uid 99); 5 Jun 2017 22:56:46 -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, 05 Jun 2017 22:56:46 +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 0F262CF781 for ; Mon, 5 Jun 2017 22:56:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.379 X-Spam-Level: *** X-Spam-Status: No, score=3.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, 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 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 Q82v5Pz7KLEZ for ; Mon, 5 Jun 2017 22:56:44 +0000 (UTC) Received: from mail-qt0-f171.google.com (mail-qt0-f171.google.com [209.85.216.171]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 2B1715F2AB for ; Mon, 5 Jun 2017 22:56:44 +0000 (UTC) Received: by mail-qt0-f171.google.com with SMTP id u19so50038954qta.3 for ; Mon, 05 Jun 2017 15:56:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=MUYYKrqsUCBxOmuWktKW7gLmUAl+9adqzZy6f2Zc56s=; b=YO5OoeAgszMuGCJpIwJMQ1m8YBuQTcNadfUvSFq3I/hvufQujBMT4tgCVB0j/08cM+ 5tiyA3ENhE97m9OM80YbaupUG7XTrfQDWIAV+o3LpMGt5m9WBjMpQVdAnkVq1l/e9OQ8 j3J6SOXI2bgW8y4vNsb6kaXFTAZH4lBh+P8CHQZfpTwlWeP9TBB0kCYYuPcZFam+/nVp SCegcQRw9btqaQANEZLm9l9XNAPA6iJ8KTlXEjWvJb+5Y6YBzeZG0GvQQ3bi4801r+UY biUrUlPSeMkmKOGfy9NjTbHhWUs4Y/OyYjWoNM0FrO2acdozmtpZ61MoFXTw5nezUcqo C8Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=MUYYKrqsUCBxOmuWktKW7gLmUAl+9adqzZy6f2Zc56s=; b=LTiriAymoNJd2wuDibqY8xb0frYCiUUkmhB3+xrTDgzGfPSgDjyz1/EYFfBj6FGZya 7HP0HwMZGSjaDlBOrc2z9lIPQjNh7UXol8j2Uo+1HcjWqhW/4gbGZlaarO3tb/Q8FCJj M5nctQO4+3ZuTrvHCVpd18O352Y0pd6LMdNPaAk/hc13CyhxCcaAcqJO3VllK3XFE32/ Ps5HpcDHhDcTY9LhEPYrK5BU6eEXyvQdOjDbwOAWEgF6AiA258QCrJdtZcMPYqFdzxUZ dAac5rBCAZedHAN8HmqFS0Q+dGfSwAJ2i6biasUL6qBI1b0vEI8cczkdK8gbw4LS1jOD WKlw== X-Gm-Message-State: AODbwcAUUU7/h/HlpOplQGmjtD0ojxAQ/v7Bx6eJIhJm1uOG7kvtuw7G Zl2eQAjSsxTW99PugI+O75D8+DO8QiZ8L9k= X-Received: by 10.55.4.65 with SMTP id 62mr26385267qke.198.1496703402849; Mon, 05 Jun 2017 15:56:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.49.4 with HTTP; Mon, 5 Jun 2017 15:56:42 -0700 (PDT) In-Reply-To: References: From: Nawab Zada Asad Iqbal Date: Mon, 5 Jun 2017 15:56:42 -0700 Message-ID: Subject: Re: Steps for building solr/lucene code and starting server To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary="001a114c8c06a93c8405513e6af9" archived-at: Mon, 05 Jun 2017 22:56:49 -0000 --001a114c8c06a93c8405513e6af9 Content-Type: text/plain; charset="UTF-8" Thanks Erick I ended up including my files in solr/webapp/build.xml under "dist" target (which is also called by "server" target in solr folder). I used fileset instead of lib not sure about the pros and cons. Now I am able to run my server using 'bin/solr' with my custom config files. On Fri, Jun 2, 2017 at 8:08 PM, Erick Erickson wrote: > You can just put a directive in your solrconfig.xml file > that points to the jar in analysis-extras..... > > I generally prefer that to copying things around on the theory that > it's one less thing to forget to copy sometime later... > > Best, > Erick > > On Fri, Jun 2, 2017 at 5:05 PM, Nawab Zada Asad Iqbal > wrote: > > When I do 'ant server', the libs from "./build/lucene-libs/" are copied > > over to "./server/solr-webapp/webapp/WEB-INF/lib/" . However, my > required > > class is in a lib which is on: > > "./build/contrib/solr-analysis-extras/lucene-libs/" > > > > I guess, I need to do the contrib target? > > > > > > On Fri, Jun 2, 2017 at 4:20 PM, Nawab Zada Asad Iqbal > > wrote: > > > >> Hi Erick > >> > >> "bin/solr start -e techproducts" works fine. It is probably because it > is > >> not referring to 'org.apache.lucene.analysis.ic > >> u.ICUNormalizer2CharFilterFactory' in the schema.xml ? > >> > >> I am not sure what should I try. I am wondering if there is some > document > >> about solr dev setup. > >> > >> > >> On Fri, Jun 2, 2017 at 8:29 AM, Erick Erickson > > >> wrote: > >> > >>> "ant server" should be sufficient. "dist" is useful for when > >>> you have custom _external_ programs (say SolrJ) that you > >>> want all the libraries collected in the same place. There's > >>> no need to "ant compile" as the "server" target > >>> > >>> I assume what you're seeing is a ClassNotFound error, right? > >>> I'm a bit puzzled since that filter isn't a contrib, so it should > >>> be found. > >>> > >>> What I'd do is just do the build first then start the example, > >>> "bin/solr start -e techproducts" > >>> Don't specify solrhome or anything else. Once that works, > >>> build up from there. > >>> > >>> Best, > >>> Erick > >>> > >>> On Fri, Jun 2, 2017 at 3:15 AM, Nawab Zada Asad Iqbal < > khichi@gmail.com> > >>> wrote: > >>> > Hi, > >>> > > >>> > I have synced lucene-solr repo because I (will) have some custom > code in > >>> > lucene and solr folders. What are the steps for starting solr > server? My > >>> > schema.xml uses ICUNormalizer2CharFilterFactory (which I see in > lucene > >>> > folder tree), but I don't know how to make it work with solr webapp. > I > >>> know > >>> > the (luncene ant > >>> > target) 'compile', (solr targets) 'dist', and 'server', but the > order > >>> is > >>> > not clear to me. > >>> > > >>> > I have compiled lucene before doing 'ant server' in solr folder, but > I > >>> > still see this error when I do 'bin/solr start -f -s ~/solrhome/' :- > >>> > > >>> > Caused by: org.apache.solr.common.SolrException: Plugin init failure > >>> for > >>> > [schema.xml] fieldType "text": Plugin init failure for [schema.xml] > >>> > analyzer/charFilter "nfkc": Error loading class > >>> > 'org.apache.lucene.analysis.icu.ICUNormalizer2CharFilterFactory' > >>> > > >>> > > >>> > > >>> > Thanks > >>> > Nawab > >>> > >> > >> > --001a114c8c06a93c8405513e6af9--