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 420F4200CAA for ; Sat, 3 Jun 2017 05:09:37 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3479B160BDD; Sat, 3 Jun 2017 03:09:37 +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 79254160BD2 for ; Sat, 3 Jun 2017 05:09:36 +0200 (CEST) Received: (qmail 12870 invoked by uid 500); 3 Jun 2017 03:09:34 -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 12857 invoked by uid 99); 3 Jun 2017 03:09:34 -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; Sat, 03 Jun 2017 03:09:34 +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 AF7901AFA40 for ; Sat, 3 Jun 2017 03:09:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.379 X-Spam-Level: X-Spam-Status: No, score=0.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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: spamd2-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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id pbDxpDdYUq8d for ; Sat, 3 Jun 2017 03:09:31 +0000 (UTC) Received: from mail-lf0-f43.google.com (mail-lf0-f43.google.com [209.85.215.43]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 927B75F5A2 for ; Sat, 3 Jun 2017 03:09:30 +0000 (UTC) Received: by mail-lf0-f43.google.com with SMTP id v20so18715375lfa.1 for ; Fri, 02 Jun 2017 20:09:30 -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=xgzVwFu3ryYKT/Pv/J+fLewg6ep7RJoxjitWV26+QHE=; b=WHDDbjuhcjiVOiDPYXuBuhiEbxt1kbRzuPXDl4xrC9ZZOEffnuVmvwH7TK/CQ5i/m0 upVTxHHwx+4TZLAoASK9hrFKYarA48LXD4Xbz/eOSEQ251W8GIJJeGKpEnaNS5xvlVfB BA1UaCQlEzYD1GwcI8BwuqQscMaxrz0lQ1k5oKa0kPAfI5MefIBOQesEQ19AGkQbc5o7 tf+qgT/V0Fe+V6OaXfbLPI0Qq/vMYwIWyGL9kfZzIaa67vJeAtDDZ6cSx4LsJA1YtV3L jRa1IEfp34rUiTXZzDmLWU6HQIJNzrO/6E3shT/HeJgnVq3oFdNJlFVAo2rWegP0KAs5 TZXQ== 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=xgzVwFu3ryYKT/Pv/J+fLewg6ep7RJoxjitWV26+QHE=; b=ZhkfVDPoI7YfZWttbt6SmT3dptbgSDImXGrGhrzfN/3TitdNQ+4P5oqSmoL+OYgT7d A+O2lk+vMAMAfSXGvLkHLgAd97sbcNPdvf35yD7GH612cBz5kW5vpQrf3XepWd/bRbev /ahht8kN2o3qQM1w7gajONxSGwvxC0T9OtxfSirqPpB7vyAP5SQH809iNj3PKJw70g9q iq9T1tXocDRrvEuLhhTtkUrgvWopwlkRKzE2yRixc5p9eLWT6Nv6DMoUWyNIIlgQhFwc 0zK+E7DLbk+y7lORQtbOs025KAkfF9+4Y8n1BkfNId0G/Y3L6MNoy+a7Ae6Q/5hn+lc/ 7ylA== X-Gm-Message-State: AODbwcAS4L5pkgzLszrdTyXbt7zgeOlQbxz3CypPOk4KUWuJPRYsPsu3 Wc4neFVnOoRINr2YmfLh/jOPB+7l0Ml7 X-Received: by 10.25.17.35 with SMTP id g35mr1937429lfi.122.1496459364089; Fri, 02 Jun 2017 20:09:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.27.7 with HTTP; Fri, 2 Jun 2017 20:08:43 -0700 (PDT) In-Reply-To: References: From: Erick Erickson Date: Fri, 2 Jun 2017 20:08:43 -0700 Message-ID: Subject: Re: Steps for building solr/lucene code and starting server To: solr-user Content-Type: text/plain; charset="UTF-8" archived-at: Sat, 03 Jun 2017 03:09:37 -0000 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 >>> 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 >>> >> >>