You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Nutan <nu...@gmail.com> on 2013/09/04 09:07:49 UTC

unknown _stream_source_info while indexing rich doc in solr

i am using solr4.2 on windows7
my schema is:
<field name="id" type="string" indexed="true" stored="true"
required="true"/>
<field name="author" type="string" indexed="true" stored="true"
multiValued="true"/>
<field name="comments" type="text" indexed="true" stored="true"
multiValued="false"/>
<field name="keywords" type="text" indexed="true" stored="true"
multiValued="false"/>
<field name="contents" type="text" indexed="true" stored="true"
multiValued="false"/>
<field name="title" type="text" indexed="true" stored="true"
multiValued="false"/>
<field name="revision_number" type="string" indexed="true"
stored="true" multiValued="false"/>
<dynamicField name="ignored_*" type="ignored" indexed="false" stored="
false"multiValued="true"/>

 solrconfig.xml :
<requestHandler name="/update/extract" class="org.apache.solr.handler.
extraction.ExtractingRequestHandler">
<lst name="defaults">
<str name="fmap.content">contents</str>
<str name="lowernames">true</str>
<str name="uprefix">ignored_</str>
<str name="captureAttr">true</str>
</lst>
</requestHandler>

when i execute:
curl "http://localhost:8080/solr/update/extract?literal.id=1&commit=true"
-F "myfile=@abc.txt"

i get error:unknown field ignored_stream_
source_info.

i referred solr cookbook3.1 and solrcookbook4 but error is not resolved
please help me.




--
View this message in context: http://lucene.472066.n3.nabble.com/unknown-stream-source-info-while-indexing-rich-doc-in-solr-tp4088136.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: unknown _stream_source_info while indexing rich doc in solr

Posted by Chris Hostetter <ho...@fucit.org>.
: Subject: Re: unknown _stream_source_info while indexing rich doc in solr
: 
: Error  got resolved,thanks a lot  Sir.I have been trying since days to
:  resolve it.

Usersn't shouldn't have to worry about problems like this ... i'll try to 
make this less error prone...

https://issues.apache.org/jira/browse/SOLR-5228


-Hoss

Re: unknown _stream_source_info while indexing rich doc in solr

Posted by Nutan <nu...@gmail.com>.
Error  got resolved,thanks a lot  Sir.I have been trying since days to
 resolve it.


On Fri, Sep 6, 2013 at 11:36 PM, Chris Hostetter-3 [via Lucene] <
ml-node+s472066n4088604h97@n3.nabble.com> wrote:

>
> : it shows type as undefined for dynamic field ignored_* , and I am using
>
> That means the running solr instance does not know anything about a
> dynamic field named ignored_* -- it doesn't exist.
>
> : but on the admin page it shows schema :
>
> the page showing hte schema file just tells you what's on disk -- it has
> no way of knowing if you modified that file after starting up solr.
>
> ... Wait a minute ... i see your problem now...
>
>         ...
> : </fields>
> : <dynamicField name="ignored_*" type="ignored" indexed="false"
> stored="true"
> : multiValued="true"/>
>
> ...your <dynamicField/> declaration needs to be inside your <fields>
> block.
>
>
> -Hoss
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://lucene.472066.n3.nabble.com/unknown-stream-source-info-while-indexing-rich-doc-in-solr-tp4088136p4088604.html
>  To unsubscribe from unknown _stream_source_info while indexing rich doc
> in solr, click here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4088136&code=bnV0YW5zaGluZGUxOTkyQGdtYWlsLmNvbXw0MDg4MTM2fC0xMzEzOTU5Mzcx>
> .
> NAML<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://lucene.472066.n3.nabble.com/unknown-stream-source-info-while-indexing-rich-doc-in-solr-tp4088136p4088765.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: unknown _stream_source_info while indexing rich doc in solr

Posted by Chris Hostetter <ho...@fucit.org>.
: it shows type as undefined for dynamic field ignored_* , and I am using

That means the running solr instance does not know anything about a 
dynamic field named ignored_* -- it doesn't exist.

: but on the admin page it shows schema :

the page showing hte schema file just tells you what's on disk -- it has 
no way of knowing if you modified that file after starting up solr.

... Wait a minute ... i see your problem now...

	...
: </fields> 
: <dynamicField name="ignored_*" type="ignored" indexed="false" stored="true"
: multiValued="true"/>

...your <dynamicField/> declaration needs to be inside your <fields> 
block.


-Hoss

Re: unknown _stream_source_info while indexing rich doc in solr

Posted by Nutan <nu...@gmail.com>.
it shows type as undefined for dynamic field ignored_* , and I am using
default collection1 core,
but on the admin page it shows schema :
<fields> 
<field name="id" type="string" indexed="true" stored="true" required="true"
multiValued="false"/>
<field name="author" type="string" indexed="true" stored="true"
multiValued="true"/>
<field name="comments" type="text" indexed="true" stored="true"
multiValued="false"/>
<field name="keywords" type="text" indexed="true" stored="true"
multiValued="false"/>
<field name="contents" type="string" indexed="true" stored="true"
multiValued="false"/>
<field name="title" type="text" indexed="true" stored="true"
multiValued="false"/>
<field name="revision_number" type="string" indexed="true" stored="true"
multiValued="false"/>
</fields> 
<dynamicField name="ignored_*" type="ignored" indexed="false" stored="true"
multiValued="true"/>
<types>



--
View this message in context: http://lucene.472066.n3.nabble.com/unknown-stream-source-info-while-indexing-rich-doc-in-solr-tp4088136p4088591.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: unknown _stream_source_info while indexing rich doc in solr

Posted by Nutan <nu...@gmail.com>.
I will try this,thanks



--
View this message in context: http://lucene.472066.n3.nabble.com/unknown-stream-source-info-while-indexing-rich-doc-in-solr-tp4088136p4088490.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: unknown _stream_source_info while indexing rich doc in solr

Posted by Chris Hostetter <ho...@fucit.org>.
: yes sir i did restart the tomcat.

When you look at the Schema Browser for your default solr core (i'm 
guessing it's collection1?), does it list ignored_* as a dynamic field?  
does this URL below show you that "ignored_*" is using type "ignored" ? 
...

http://localhost:8983/solr/#/collection1/schema-browser?dynamic-field=ignored_*

...if not, then you aren't using the schema.xml that you think you are.



-Hoss

Re: unknown _stream_source_info while indexing rich doc in solr

Posted by Nutan <nu...@gmail.com>.
yes sir i did restart the tomcat.


On Wed, Sep 4, 2013 at 6:27 PM, Jack Krupansky-2 [via Lucene] <
ml-node+s472066n4088181h84@n3.nabble.com> wrote:

> Did you restart Solr after editing config and schema?
>
> -- Jack Krupansky
>
> -----Original Message-----
> From: Nutan
> Sent: Wednesday, September 04, 2013 3:07 AM
> To: [hidden email] <http://user/SendEmail.jtp?type=node&node=4088181&i=0>
> Subject: unknown _stream_source_info while indexing rich doc in solr
>
> i am using solr4.2 on windows7
> my schema is:
> <field name="id" type="string" indexed="true" stored="true"
> required="true"/>
> <field name="author" type="string" indexed="true" stored="true"
> multiValued="true"/>
> <field name="comments" type="text" indexed="true" stored="true"
> multiValued="false"/>
> <field name="keywords" type="text" indexed="true" stored="true"
> multiValued="false"/>
> <field name="contents" type="text" indexed="true" stored="true"
> multiValued="false"/>
> <field name="title" type="text" indexed="true" stored="true"
> multiValued="false"/>
> <field name="revision_number" type="string" indexed="true"
> stored="true" multiValued="false"/>
> <dynamicField name="ignored_*" type="ignored" indexed="false" stored="
> false"multiValued="true"/>
>
> solrconfig.xml :
> <requestHandler name="/update/extract" class="org.apache.solr.handler.
> extraction.ExtractingRequestHandler">
> <lst name="defaults">
> <str name="fmap.content">contents</str>
> <str name="lowernames">true</str>
> <str name="uprefix">ignored_</str>
> <str name="captureAttr">true</str>
> </lst>
> </requestHandler>
>
> when i execute:
> curl "http://localhost:8080/solr/update/extract?literal.id=1&commit=true"
> -F "myfile=@abc.txt"
>
> i get error:unknown field ignored_stream_
> source_info.
>
> i referred solr cookbook3.1 and solrcookbook4 but error is not resolved
> please help me.
>
>
>
>
> --
> View this message in context:
>
> http://lucene.472066.n3.nabble.com/unknown-stream-source-info-while-indexing-rich-doc-in-solr-tp4088136.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://lucene.472066.n3.nabble.com/unknown-stream-source-info-while-indexing-rich-doc-in-solr-tp4088136p4088181.html
>  To unsubscribe from unknown _stream_source_info while indexing rich doc
> in solr, click here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4088136&code=bnV0YW5zaGluZGUxOTkyQGdtYWlsLmNvbXw0MDg4MTM2fC0xMzEzOTU5Mzcx>
> .
> NAML<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://lucene.472066.n3.nabble.com/unknown-stream-source-info-while-indexing-rich-doc-in-solr-tp4088136p4088295.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: unknown _stream_source_info while indexing rich doc in solr

Posted by Jack Krupansky <ja...@basetechnology.com>.
Did you restart Solr after editing config and schema?

-- Jack Krupansky

-----Original Message----- 
From: Nutan
Sent: Wednesday, September 04, 2013 3:07 AM
To: solr-user@lucene.apache.org
Subject: unknown _stream_source_info while indexing rich doc in solr

i am using solr4.2 on windows7
my schema is:
<field name="id" type="string" indexed="true" stored="true"
required="true"/>
<field name="author" type="string" indexed="true" stored="true"
multiValued="true"/>
<field name="comments" type="text" indexed="true" stored="true"
multiValued="false"/>
<field name="keywords" type="text" indexed="true" stored="true"
multiValued="false"/>
<field name="contents" type="text" indexed="true" stored="true"
multiValued="false"/>
<field name="title" type="text" indexed="true" stored="true"
multiValued="false"/>
<field name="revision_number" type="string" indexed="true"
stored="true" multiValued="false"/>
<dynamicField name="ignored_*" type="ignored" indexed="false" stored="
false"multiValued="true"/>

solrconfig.xml :
<requestHandler name="/update/extract" class="org.apache.solr.handler.
extraction.ExtractingRequestHandler">
<lst name="defaults">
<str name="fmap.content">contents</str>
<str name="lowernames">true</str>
<str name="uprefix">ignored_</str>
<str name="captureAttr">true</str>
</lst>
</requestHandler>

when i execute:
curl "http://localhost:8080/solr/update/extract?literal.id=1&commit=true"
-F "myfile=@abc.txt"

i get error:unknown field ignored_stream_
source_info.

i referred solr cookbook3.1 and solrcookbook4 but error is not resolved
please help me.




--
View this message in context: 
http://lucene.472066.n3.nabble.com/unknown-stream-source-info-while-indexing-rich-doc-in-solr-tp4088136.html
Sent from the Solr - User mailing list archive at Nabble.com.