SOLR中未编入索引的特定动态字段

时间:2014-10-03 18:08:32

标签: solr

我的SOLR架构中有以下定义:

<dynamicField name="*_s" type="string" indexed="true" stored="true" omitNorms="true" />

在大多数文档中,我的动态字段带有后缀&#39; _s&#39;它被编入索引,即

{
    "id": "http://rdf.abbvienet.com/data/tripReport/interaction/a114fa3a-a2ef-4c31-aa0d-0fd1825f9f54",
    "name": "BTK Inhibitor",
    "type": "http://schemas.abbvienet.com/ontologies/data.owl#TripReportInteraction",
    "source": "urn:x-abbvie:trakm",
    "meeting_name_s": "CHI Conference - Drug Discovery Chemistry",
    "location_s": "San Diego, CA",
    "title_s": "BTK Inhibitor",
    "alternate_title_s": "BTK Inhibitor",
    "company_s": "Pharmacyclics",
    "date_t": "2013-04-16T05:00:00Z",
    "category_s": "New Competitor,Competition,AbbVie Target",
    "related_diseases_s": "Autoimmune - Lupus,Autoimmune - Rheumatoid Arthritis",
    "related_protein_types_s": "Protein kinase",
    "related_mechanisms_of_action_s": "Immunomodulator"
  }

如果我在查询中使用&#39; title_s:*&#39;,则返回带有title字段的所有字段,这样可以正常工作。但是,我有另外一组文件,如下所示:

{
    "type": "http://schemas.abbvienet.com/ontologies/data.owl#Target",
    "source": "urn:x-abbvie:targets",
    "id": "http://rdf.abbvienet.com/data/target/BTK",
    "name": "BTK",
    "common_name_s": "Bruton agammaglobulinemia tyrosine kinase",
    "description_w": "The protein encoded by this gene plays a crucial role in B-cell development. Mutations in this gene cause X-linked agammaglobulinemia type 1, which is an immunodeficiency characterized by the failure to produce mature B lymphocytes, and associated with a failure of Ig heavy chain rearrangement. Alternative splicing results in multiple transcript variants encoding different isoforms. [provided by RefSeq, Dec 2013]",
    "alias": [
      "XLA",
      "PSCTK1",
      "ATK",
      "truncated Bruton agammaglobulinemia tyrosine kinase",
      "agammaglobulinaemia tyrosine kinase",
      "tyrosine-protein kinase BTK",
      "dominant-negative kinase-deficient Brutons tyrosine kinase",
      "tyrosine-protein kinase BTK isoform (lacking exon 14)",
      "B-cell progenitor kinase"
    ]
  }

&#39; common_name_s:*&#39;的solr查询没有回报。有没有人有任何想法?

字段定义:

<field name="_version_" type="long" indexed="true" stored="true"/>
<field name="id" type="string" indexed="true" stored="true" required="true"/>
<field name="name" type="exact_no_case" indexed="true" stored="true" required="true" />
<field name="name_edge" type="exact_no_case_edge" indexed="true" stored="false" />
<field name="name_partial" type="word_ngram" indexed="true" stored="false" />
<copyField source="name" dest="name_edge" />
<copyField source="name" dest="name_partial" />
<copyField source="name" dest="by_words" />
<copyField source="name" dest="by_words_edge" />
<copyField source="name" dest="by_phonetics" />
<field name="alias" type="exact_no_case" indexed="true" stored="true" multiValued="true" />
<field name="alias_edge" type="exact_no_case_edge" indexed="true" stored="false" multiValued="true" />
<field name="alias_partial" type="word_ngram" indexed="true" stored="false" multiValued="true" />
<copyField source="alias" dest="alias_edge" />
<copyField source="alias" dest="alias_partial" />
<copyField source="alias" dest="by_words" />
<copyField source="alias" dest="by_words_edge" />
<copyField source="alias" dest="by_phonetics" />
<field name="type" type="string" indexed="true" stored="true" />
<field name="source" type="string" indexed="true" stored="true" required="true" />
<field name="by_words" type="word_match" indexed="true" stored="false" multiValued="true" />
<field name="by_partial_words" type="word_ngram" indexed="true" stored="false"  multiValued="true" />
<field name="by_words_edge" type="word_edge" indexed="true" stored="false" multiValued="true" />
<field name="by_phonetics" type="phonetic_match" indexed="true" stored="false" omitNorms="true" multiValued="true" />
<dynamicField name="*_s" type="string" indexed="true" stored="true" omitNorms="true" />
<dynamicField name="*_w" type="string" indexed="true" stored="true" omitNorms="true" />
<dynamicField name="*_d" type="double" indexed="true"  stored="true" />
<dynamicField name="*_i" type="int" indexed="true" stored="true" />
<dynamicField name="*_f" type="float" indexed="true" stored="true" />
<dynamicField name="*_l" type="long" indexed="true" stored="true" />
<dynamicField name="*_b" type="boolean" indexed="true" stored="true" />
<dynamicField name="*_t" type="date" indexed="true" stored="true" />
<copyField source="*_s" dest="by_words" />
<copyField source="*_s" dest="by_partial_words" />
<copyField source="*_s" dest="by_words_edge" />
<copyField source="*_s" dest="by_phonetics" />
<copyField source="*_w" dest="by_words" />

0 个答案:

没有答案