tags:

views:

605

answers:

1

I want to using solr for search on articles

I have 3 table:

  1. Group (id , group name)
  2. ArticleBase (id, groupId, some other field)
  3. Article(id, articleBaseId, title, date, ...)

in solr schema.xml file i just define all article field that mixed with ArticleBase table (for use one index on solr) like this: (id, articleBaseId, groupId, ...)

problem: Admin want to change group (ArticleBase), therefore i must update (or replace) all indexed article in solr. right ?
can i update groupId only in solr index ?

have any solution ?

Note:Article table contains more than 200 million article, and i using solr for index only (not store any field data except article id)

Thanks in advanced

+4  A: 

Solr does not support updating individual fields yet, but there is a JIRA issue about this (almost 3 years old as of this writing).

Until this is implemented, you have to update the whole document.

Mauricio Scheffer
Let me just comment that Mauricio means just that one single document needs to be updated, not your entire 200 million article table.
Eric Pugh