lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tiernan OToole <>
Subject Re: Solr MultiValue Fields and adding values
Date Wed, 19 Oct 2011 10:10:32 GMT

Hash: SHA1
I was hoping that wasent going to be the case... I ended up querying for
all unique IDs in the DB, and then querying for each unique ID and
getting all names, and then inserting them that way... Seems a lot
slower than in theory it really should be...
- --Tiernan
On 18/10/2011 23:20, Otis Gospodnetic wrote:
> Hi,
> You'll need to construct the whole document and index it as such. You
can't append values to document fields.
> Otis
> ----
> Sematext :: :: Solr - Lucene - Nutch
> Lucene ecosystem search ::
>> ________________________________
>> From: Tiernan OToole <>
>> To:
>> Sent: Tuesday, October 18, 2011 11:41 AM
>> Subject: Solr MultiValue Fields and adding values
>> Good morning.
>> I asked this question on StackOverflow, but though this group may be
>> able to help... the question is available on SO here:
>> here goes:
>> I am building a search engine, and have a not so unique ID for a lot of
>> different names... So, for example, there could be an id of B0051QVF7A
>> which would have multiple names like "Kindle" "Amazon Kindle" "Amazon
>> Kindle 3G" "Kindle Ebook Reader" "New Kindle" etc.
>> The problem, and question i have, is that i am trying to enter this data
> >from a DB of 11 ish million rows. each is being read one at a time. So i
>> dont have all the names of each ID. I am adding new documents to the
>> list each time.
>> What i am trying to find out is how do i add names to an existing
>> Document? if i am reading documentation correctly, it seems to overwrite
>> the whole document, not add extra info to the field... i just want to
>> add an extra name to the document multivalue field...
>> I know this could cause some weird and wonderful "issues" if a name is
>> removed (in the example above, "New Kindle" could be removed when a
>> newer Kindle gets released) but i am thinking of recreating the index
>> every now and again, to clear out issues like that (once a month or so.
>> Its taking about 45min currently to create the index).
>> So, how do you add a value to a multivalue field in solr for an existing
>> document?
>> Thanks in advance.
>> --Tiernan
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla -

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message