lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lance Norskog <goks...@gmail.com>
Subject Re: multiple values
Date Sat, 21 Aug 2010 02:50:22 GMT
The most basic test is a direct search against Solr and look at the
XML output for the values:
http://localhost:8983/solr/select?q=*:*

Perhaps an xpath without the 'Author' element
/PublishedArticles/Article/AuthorList will give Authors as a
multivalued field.

It is also possible that the DIH creates a separate document for each
<Author>, but they all have the same unique id and only the last
document gets saved. Getting multiValued data out of the DIH is
tricky.

Lance

On Thu, Aug 19, 2010 at 1:36 PM, Erick Erickson <erickerickson@gmail.com> wrote:
> The first thing I'd do is look at the document in the admin pages and
> determine what you
> actually have in the index. If that's OK, have you dumped your responses to
> see if the
> returned document has multiple entries but you're parsing is off?
>
> Best
> Erick
>
> On Wed, Aug 18, 2010 at 5:00 PM, Ma, Xiaohui (NIH/NLM/LHC) [C] <
> xiaohui@mail.nlm.nih.gov> wrote:
>
>> Hello,
>>
>> I only can display one author which is last one. It looks like overwrite
>> others.
>>
>> In xml, I have more than one <author>name</author> in
>> <authorlist></authorlist>.
>>
>> In data_config.xml, I put the <field column="Author"
>> xpath="/PublishedArticles/Article/AuthorList/Author" />.
>>
>> In schema.xml, I put <field name="Author" type="text" indexed="true"
>> stored="true" multiValued="true"/>.
>>
>> Please let me know if I did something wrong, or how I can display it in
>> jsp.
>>
>> I really appreciate your help!
>>
>



-- 
Lance Norskog
goksron@gmail.com

Mime
View raw message