Return-Path: X-Original-To: apmail-lucene-general-archive@www.apache.org Delivered-To: apmail-lucene-general-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A939ED6DB for ; Tue, 13 Nov 2012 23:59:29 +0000 (UTC) Received: (qmail 93482 invoked by uid 500); 13 Nov 2012 23:59:29 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 93411 invoked by uid 500); 13 Nov 2012 23:59:29 -0000 Mailing-List: contact general-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@lucene.apache.org Delivered-To: mailing list general@lucene.apache.org Received: (qmail 93398 invoked by uid 99); 13 Nov 2012 23:59:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Nov 2012 23:59:29 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul.jungwirth@gmail.com designates 209.85.223.176 as permitted sender) Received: from [209.85.223.176] (HELO mail-ie0-f176.google.com) (209.85.223.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Nov 2012 23:59:22 +0000 Received: by mail-ie0-f176.google.com with SMTP id k11so13234369iea.35 for ; Tue, 13 Nov 2012 15:59:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=kqHYmI6NyHJoPqkzyWWlfy20ydMHnC9pagZFOQMNEG8=; b=Kw+thtHWGewGXz6hrc/CuP20QURuy2JbKDBaKgYgAKWyYtYu2JFzfwDa9eO0kP3+1z 5y8WX+Enp8kaVAidJIGHwkX71GbC4NQaGVgluQNr6zdXqpbxwdNbtjyAF7INdL0v74QN ccxEh0WJ7wJJc+cgftoKcXaKCMZPQNPJKgBdX3NRQn35ALYCdLS+r2LzC/3AWWaAB9QE Q9ZSPoo59Y/OepQidcm82ftNUNJlydBgCHkV+aLvKP2bvqJo2eklSEd42gWRpCJ48CQ1 F8G8U+6JCQQiEwlO/X/X17TMMD0fzOD6m0nKKvWaCsRtBAG6zvbQYbJBANM7NUIvO+YY ZGWg== MIME-Version: 1.0 Received: by 10.50.237.103 with SMTP id vb7mr121423igc.29.1352851141659; Tue, 13 Nov 2012 15:59:01 -0800 (PST) Sender: paul.jungwirth@gmail.com Received: by 10.64.7.240 with HTTP; Tue, 13 Nov 2012 15:59:01 -0800 (PST) In-Reply-To: <1352471006912-4019318.post@n3.nabble.com> References: <1352471006912-4019318.post@n3.nabble.com> Date: Tue, 13 Nov 2012 15:59:01 -0800 X-Google-Sender-Auth: t_mrAV42pB6fn55tfQYFqAkHISw Message-ID: Subject: Re: How to query a lucene index from JavaScript (no server or jvm)? From: Paul Jungwirth To: general@lucene.apache.org Content-Type: multipart/alternative; boundary=14dae9341205bb8b3504ce69336b X-Virus-Checked: Checked by ClamAV on apache.org --14dae9341205bb8b3504ce69336b Content-Type: text/plain; charset=UTF-8 > I have been asked to "develop a HTML page with a Search textbox to search a collection of HTML files without using a Server" That sounds very tricky! This is client-side Javascript, right? I don't know how JS running in someone's web browser could access your Lucene index without a server making it available. If you want an easy server solution, Solr and ElasticSearch are both good options that expose Lucene to remote clients, with web-based APIs you could call directly from client-side Javascript. Or you could send the JS calls to whatever you're using to serve the HTML pages, and have that use Lucene/Solr/ES/etc. behind the scenes. Good luck, Paul On Fri, Nov 9, 2012 at 6:23 AM, dcgoodwin wrote: > I have been asked to "develop a HTML page with a Search textbox to search a > collection of HTML files without using a Server". Lets say the number of > HTML files are less than 500 and the file size is less than .5 Mbyte. > > I am creating a Lucene index from the set of HTML files from Java when I > generate the HTML files from XML source files. I am not seeing how to query > the Lucene index from JavaScript only (no server of jvm). I am thinking I > need to create 1 or more XML files from the Lucene index and use JavaScript > to load-up the XML files to perform a search. > > Please let me know if this sounds reasonable given the constraints and if > folks have tried this before. > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/How-to-query-a-lucene-index-from-JavaScript-no-server-or-jvm-tp4019318.html > Sent from the Lucene - General mailing list archive at Nabble.com. > -- _________________________________ Pulchritudo splendor veritatis. --14dae9341205bb8b3504ce69336b--