lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Hahn (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-4729) Using a copyField with * as the source doesn't work
Date Mon, 22 Apr 2013 19:11:16 GMT

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

Adam Hahn commented on SOLR-4729:
---------------------------------

I've just tested again and I'm still seeing the error using the solr-4.1-2013-04-22_10-31-16
nightly build.  This should include the fix right?

Environment: I've tested in both Windows and Linux.  Solr is launched using the copy of Jetty
included.

Steps taken:  
1. Unzipped Solr
2. Modified the example/solr/collection1/conf/schema.xml file to add the line
<copyField source="*" dest="text"/> after the other copyField lines and just before
the start of the "types" block
3. Opened up the Solr Admin page, selected the collection1 core from the dropdown and clicked
on Analysis.

At this point the "Analyse Fieldname / FieldType" shows "Loading ...".  The log file shows
the error mentioned in the description.  The log only contains this one line and not a full
stack trace.  I do see a stack trace in the terminal where I started Solr.  This is shown
below.  Using Firebug, it appears that the call that's causing this is: http://localhost:8983/solr/collection1/admin/luke?wt=json&show=schema&_=1366655832433

I've also tried commenting out the other copyFields in case that was causing an issue, but
it didn't resolve it.


Stack trace from terminal:
8447 [qtp811887233-14] INFO  org.apache.solr.servlet.SolrDispatchFilter  â [admin] webapp=null
path=/admin/cores params={indexInfo=false&_=1366655616048&wt=json} status=0 QTime=1
8477 [qtp811887233-14] INFO  org.apache.solr.core.SolrCore  â [collection1] webapp=/solr
path=/admin/system params={_=1366655616075&wt=json} status=0 QTime=7
8526 [qtp811887233-14] ERROR org.apache.solr.core.SolrCore  â org.apache.solr.common.SolrException:
undefined field: "*"
        at org.apache.solr.schema.IndexSchema.getField(IndexSchema.java:1142)
        at org.apache.solr.schema.IndexSchema.getCopySources(IndexSchema.java:1242)
        at org.apache.solr.handler.admin.LukeRequestHandler.populateFieldInfo(LukeRequestHandler.java:528)
        at org.apache.solr.handler.admin.LukeRequestHandler.getSchemaInfo(LukeRequestHandler.java:415)
        at org.apache.solr.handler.admin.LukeRequestHandler.handleRequestBody(LukeRequestHandler.java:157)
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1816)
        at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:642)
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:345)
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:141)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
        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:365)
        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
        at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
        at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)
        at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
        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:722)

8527 [qtp811887233-14] INFO  org.apache.solr.core.SolrCore  â [collection1] webapp=/solr
path=/admin/luke params={_=1366655616125&show=schema&wt=json} status=400 QTime=6






                
> Using a copyField with * as the source doesn't work
> ---------------------------------------------------
>
>                 Key: SOLR-4729
>                 URL: https://issues.apache.org/jira/browse/SOLR-4729
>             Project: Solr
>          Issue Type: Bug
>          Components: Schema and Analysis
>    Affects Versions: 4.2
>            Reporter: Adam Hahn
>
> It seems you can no longer use a wildcard as the source when defining a copyField.  I
don't believe that this was fixed as part of SOLR-4650 since I've tested it with the 4/17
nightly build and it doesn't work.
> I'm using the following line: <copyField source="*" dest="text"/>
> If I index something, this line is ignored.  If I go to the Analysis tab, the fields
aren't populated and I see the error: 'org.apache.solr.common.SolrException: undefined field:
"*"' in the log.
> This worked correctly in 4.0, but I didn't test it in 4.1.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message