English 中文(简体)
索尔:未界定的领域 页: 1
原标题:solr: undefined field ------------------------------4566bce013ce
  • 时间:2012-04-13 13:55:37
  •  标签:
  • solr

I m trying to upload csv file to index. When I do I m getting an error:

org.apache.solr.common.SolrException: undefined field ----------------------------4566bce013ce
at org.apach.solr.schema.IndexSchema.getField(IndexSchema.java:1185)

I m 通过曲线上载荷:

curl http://localhost:8080/solrTest/update/csv -F commit=ture -F skipLine=1 -F stream.file=/home/solr/text.csv -F fieldnames=partId,desc,usage -H content-type:text/plain;charset=utf-8

我的所有领域都用我的图谋Xml来界定,因此我不敢肯定为什么我会发现一个未界定的实地错误。

让我知道,您是否需要更多的信息。 感谢。

EDIT: Ok, after reading the post by Itay Moav, I ve decided to do some more simple test. I m using a csv file with only one record with a partId (test123). My schema.xml look like this:

<?xml version="1.0" encoding="UTF-8" ?>
<schema name="parts" version="1.5">
  <types>
    <fieldType name="text_en_us" class="solr.StrField">
  </types>
  <fields>
    <field name=partId type="text_en_us" indexed="true" stored="true" required="true" />
    <uniqueKey>partId</uniqueKey>
  </fields>
</schema>

即便有这一测试数据,我也发现同样的错误。 唯一的变化是数字。

org.apache.solr.common.SolrException: undefined field ----------------------------------7951b21305c3

再次感谢任何帮助。

最佳回答

只剩下有问题的纪录,才能用双双手方式消除卷宗中的记录。 然后,要么通过 yourself看问题,要么把记录和图象放在这里。

问题回答

在我们的图谋中添加这一点,应当加以确定。

<types>
    <fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" />
    ....
</types>

<fields>
    <dynamicField name="*" type="ignored" multiValued="true" />
    ....
<fields>




相关问题
solr problem to get the field names

Ive got a problem. In each document I ve got fields: threads.id and posts.id. I want to get the field name value for them so i can get data from the database. Between the lines beneath i have marked ...

Which is the better client for Solr + PHP?

I have two options http://www.php.net/manual/en/book.solr.php http://code.google.com/p/solr-php-client/ I read it somewhere that that 2) use JSON as output types whereas 1) use XML doc. Isn t ...

Geronimo vs Glassfish

For a production environment, is Apache Geronimo better for applications that uses ActiveMQ, Derby, Solr?

Sort by date in Solr/Lucene performance problems

We have set up an Solr index containing 36 million documents (~1K-2K each) and we try to query a maximum of 100 documents matching a single simple keyword. This works pretty fast as we had hoped for. ...

SOLR - delta import not with last_modified

I saw only ways using delta import with last_modified. Is there some other ways to do delta_imports withut using timestamps? For example, if i have unique key(integer), can i tell SOLR to index only ...

SOLR How to return only limited matched content

ok guys, say in my Schema I have 4 fields: <field name="SiteIdentifier" type="string" indexed="true" stored="true" required="true"/> <field name="Title" type="text" indexed="true" stored="...

Solr - character substitution

I have Solr with indexed database. In my database all data is in Latvian. The problem is, I need to be able to search word Riga as if it is word Rīga. Of course, i can define synonym - Rīga = Riga, ...

热门标签