【问题标题】:Indexing one to many relational structure in solr在solr中索引一对多关系结构
【发布时间】:2016-08-08 18:38:53
【问题描述】:

我有一个类似下面的模式,我想在 SOLR 中建立索引。但我不确定如何管理第一个表之间的一对多关系:用户和第二个表:地址

ID      NAME      DESCRIPTION
-------------------------------------------------
1       NAME1     DEMO DESCRIPTION ONE
2       NAME2     DEMO DESCRIPTION TWO
3       NAME3     DEMO DESCRIPTION THREE

-------------------------------------------------
ADDR_ID   USER_ID  CITY     STATE     COUNTRY
-------------------------------------------------
1         1        cityv    statev    countryv
2         1        cityw    statew    countryw
3         2        cityx    statex    countryx
4         2        cityy    statey    countryy
5         3        cityz    statez    countryz

如何索引具有多个地址的用户? 另外如何通过 users.name、address.city / address.state 名称搜索它们?

【问题讨论】:

    标签: indexing solr


    【解决方案1】:

    尝试Block Join 与父/子结构

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-12-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多