lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SOLR-6779) /browse fails for schemaless example
Date Mon, 01 Dec 2014 15:47:13 GMT

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

Erik Hatcher edited comment on SOLR-6779 at 12/1/14 3:46 PM:
-------------------------------------------------------------

bq. I don't think Velocity is designed for production environment either, so the use case
is probably similar (demo).

It's really FUD to say that.  That's like saying wt=json isn't suited for a production environment.
 It all really depends on how you use it.  I have a first hand account of a huge job search
site that uses wt=velocity for generating e-mails; and yeah, that's not generating a direct
to users browser view, but it's still "UI" and a quite clever and valid use case. 

No, you should not expose Solr to end users, JSON or XML or any other response format.  But
that does not mean it's not "for production", again depends on how you define it and use it.
 

If one were so inclined,  you could front Solr with a proxy/firewall to prevent updates or
other malicious or unintended uses and have the UI come from wt=velocity even.  Totally production
quality in that case.


was (Author: ehatcher):
bq. I don't think Velocity is designed for production environment either, so the use case
is probably similar (demo).

It's really FUD to say that.  That's like saying wt=json isn't suited for a production environment.
 It all really depends on how you use it.  I have a first hand account of a huge job search
site that uses wt=velocity for generating e-mails; and yeah, that's not generating a direct
to users browser view, but it's still "UI" and a quite clever and valid use case. 

No, you should not expose Solr to end users, JSON or XML or any other response format.  But
that does not mean it's not "for production", again depends on how you define it and use it.
 

> /browse fails for schemaless example
> ------------------------------------
>
>                 Key: SOLR-6779
>                 URL: https://issues.apache.org/jira/browse/SOLR-6779
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 5.0
>            Reporter: Alexandre Rafalovitch
>            Assignee: Erik Hatcher
>            Priority: Blocker
>              Labels: examples
>             Fix For: 5.0
>
>
> 1. bin/solr start -e schemaless
> 2. http://localhost:8983/solr/schemaless/browse
> {quote}
> HTTP ERROR 500
> Problem accessing /solr/schemaless/browse. Reason:
>    \{msg=Unable to find resource 'browse.vm',trace=java.io.IOException: Unable to find
resource 'browse.vm'
> 	at org.apache.solr.response.VelocityResponseWriter.getTemplate(VelocityResponseWriter.java:177)
> 	at org.apache.solr.response.VelocityResponseWriter.write(VelocityResponseWriter.java:53)
> 	at org.apache.solr.core.SolrCore$LazyQueryResponseWriterWrapper.write(SolrCore.java:2563)
> 	at org.apache.solr.response.QueryResponseWriterUtil.writeQueryResponse(QueryResponseWriterUtil.java:53)
> 	at org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatchFilter.java:763)
> 	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:416)
> 	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:202)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
> 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
> 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
> 	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
> 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
> 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
> 	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
> 	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> 	at org.eclipse.jetty.server.Server.handle(Server.java:368)
> 	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
> 	at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
> 	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942)
> 	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004)
> 	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640)
> 	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
> 	at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
> 	at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
> 	at java.lang.Thread.run(Thread.java:744)
> ,code=500}
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message