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 171CEC468 for ; Fri, 7 Jun 2013 14:21:37 +0000 (UTC) Received: (qmail 12861 invoked by uid 500); 7 Jun 2013 14:21:33 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 12792 invoked by uid 500); 7 Jun 2013 14:21:33 -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 12780 invoked by uid 99); 7 Jun 2013 14:21:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jun 2013 14:21:32 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of arafalov@gmail.com designates 209.85.160.45 as permitted sender) Received: from [209.85.160.45] (HELO mail-pb0-f45.google.com) (209.85.160.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jun 2013 14:21:28 +0000 Received: by mail-pb0-f45.google.com with SMTP id mc8so4756683pbc.18 for ; Fri, 07 Jun 2013 07:21:08 -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=2SJB1u3b5PIERV7w+SGHcSqWtE15dHuSE5s77GZxqXs=; b=IV9EIOvlAmRM+OyxaUjiLbebBdnaA2qyKBWpQHkz67qLLwvmkCFFd7x+V8j+w9scJl cBE+uh4CyA/A/rDijIufskKBmqKpW0Ylufz3iblD+x/KM8ZMh4eY3g99dIu24NRB7v/G u9UuY874UpvSpRcPmYC3PlgbUud4pYYEvgJVJ+K67hTOZrhFWxz2UZfsWg/b0LUlCZgK v8JD+haknPFKahsht8C5S/cyAK9IcYa/kX1LS9v3jZIkc2yZKeIIBy53gI2z2sLo+gCD uRHPZB0YGkwO7rkzKfXx10E22xOmPT1j4/n4S5hO9e8Ap4zytwvkWJPB1lxdC+BqaGCj VxhA== X-Received: by 10.68.59.167 with SMTP id a7mr43352273pbr.94.1370614868693; Fri, 07 Jun 2013 07:21:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.86.161 with HTTP; Fri, 7 Jun 2013 07:20:28 -0700 (PDT) In-Reply-To: <1370599702694-4068834.post@n3.nabble.com> References: <1370599702694-4068834.post@n3.nabble.com> From: Alexandre Rafalovitch Date: Fri, 7 Jun 2013 10:20:28 -0400 Message-ID: Subject: Re: Solr4.3 Internationalization. To: solr-user@lucene.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org It may be helpful to approach this from the other side. Specifically search. Are you: 1) Expecting to search across both French and English content (e.g. French, but fallback to English if translation is missing)? If yes, you want a single collection 2) Is French content completely separate from English content or are they just a couple of translated fields in otherwise shared entity? If later, you want a single collection. 3) Are you accessing all languages at once when you retrieve a record or just one language at a time? If all languages at once, you want a single collection. And so on. If your content is completely separate, you could do different collections. Otherwise, you probably want the same collection. If you do want a single collection, there is a couple of things you can do to make it transparent for the frontend code to switch between languages and make search transparent. While not a production use, it is explored in details in my just released book: http://www.packtpub.com/apache-solr-for-indexing-data/book . The corresponding example is at: https://github.com/arafalov/solr-indexing-book/tree/master/published/languages but I am not sure how easy it is to understand without the walkthrough in the book. Regards, Alex. Personal blog: http://blog.outerthoughts.com/ LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch - Time is the quality of nature that keeps events from happening all at once. Lately, it doesn't seem to be working. (Anonymous - via GTD book) On Fri, Jun 7, 2013 at 6:08 AM, bsargurunathan wrote: > Guys, > > Please clarify the following questions regarding Solr Internationalization. > > 1) Initially my requirement is need to support 2 languages(English & French) > for a Web application. > And we are using Mysql DB. > > 2) So please share good and easy approach to achieve it with some sample > configs. > > 3) And my question is whether I need to index the data with both > languages(English & French) with different cores? > > 4) Or indexing with English is only enough? So solr have any mechanism to > handle multiple languages while retrieving? If there anything share with > some sample configs. > > Thanks > Guru > > > > -- > View this message in context: http://lucene.472066.n3.nabble.com/Solr4-3-Internationalization-tp4068834.html > Sent from the Solr - User mailing list archive at Nabble.com.