JavaFX is your friend and WebView is the ally
>________________________________ > De: Paul Jungwirth <[email protected]> >Para: [email protected] >Enviado: Martes, 13 de noviembre, 2012 5:59 P.M. >Asunto: Re: How to query a lucene index from JavaScript (no server or jvm)? > >> 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 <[email protected]> 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. > > >
