[ 
https://issues.apache.org/jira/browse/LUCENE-5376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13884240#comment-13884240
 ] 

Michael McCandless commented on LUCENE-5376:
--------------------------------------------

Hi Arcadius, the server is currently not a webapp; you don't drop it into any 
web container to run it.

Instead, its a standalone app, using Netty for the HTTP interface; run it like 
this:

{noformat}
    java -cp ... org.apache.lucene.server.Server -port NNNN -stateDir 
/path/to/dir
{noformat}

You'll need to put a bunch of Lucene's JARs on the classpath since the server 
exposes most of Lucene's modules (grouping, joins, analysis, highlighter, 
facets, queries, queryparser, suggest, expressions), as well as the jars under 
lucene/server/lib after you've run "ant resolve".

> Add a demo search server
> ------------------------
>
>                 Key: LUCENE-5376
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5376
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>         Attachments: lucene-demo-server.tgz
>
>
> I think it'd be useful to have a "demo" search server for Lucene.
> Rather than being fully featured, like Solr, it would be minimal, just 
> wrapping the existing Lucene modules to show how you can make use of these 
> features in a server setting.
> The purpose is to demonstrate how one can build a minimal search server on 
> top of APIs like SearchManager, SearcherLifetimeManager, etc.
> This is also useful for finding rough edges / issues in Lucene's APIs that 
> make building a server unnecessarily hard.
> I don't think it should have back compatibility promises (except Lucene's 
> index back compatibility), so it's free to improve as Lucene's APIs change.
> As a starting point, I'll post what I built for the "eating your own dog 
> food" search app for Lucene's & Solr's jira issues 
> http://jirasearch.mikemccandless.com (blog: 
> http://blog.mikemccandless.com/2013/05/eating-dog-food-with-lucene.html ). It 
> uses Netty to expose basic indexing & searching APIs via JSON, but it's very 
> rough (lots nocommits).



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to