lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jaco Olivier" <>
Subject RE: do copyField's need to exist as Fields?
Date Wed, 09 Dec 2009 07:28:51 GMT
Hi Regan,

Something I noticed on your setup...
The ID field in your setup I assume to be your uniqueID for the book or
journal (The ISSN or something)
Try making this a string as TEXT is not the ideal field to use for
unique IDs

<field  name="id" type="string" indexed="true" stored="true"
multiValued="false" required="true" />

Congrats on figuring out SOLR fields - I suggest getting the SOLR 1.4
Book.. It really saved me a 1000 questions on this mailing list :)

Jaco Olivier

-----Original Message-----
From: regany [] 
Sent: 09 December 2009 00:48
Subject: Re: do copyField's need to exist as Fields?

regany wrote:
> Is there a different way I should be setting it up to achieve the

Think I figured it out.

I set up the <fields> so they are present, but get ignored accept for
"text" field which gets indexed...

<field  name="id" type="text" indexed="true" stored="true"
multiValued="false" required="true" />
<field name="title" stored="false" indexed="false" multiValued="true"
type="text" />
<field name="subtitle" stored="false" indexed="false" multiValued="true"
type="text" />
<field name="body" stored="false" indexed="false" multiValued="true"
type="text" />
<field name="text" type="text" indexed="true" stored="false"
multiValued="true" />

and then copyField the first 4 fields to the "text" field:

<copyField source="id" dest="text" />
<copyField source="title" dest="text" />
<copyField source="subtitle" dest="text" />
<copyField source="body" dest="text" />

Seems to be working!? :drunk:
View this message in context:
Sent from the Solr - User mailing list archive at

Please consider the environment before printing this email. This 
transmission is for the intended addressee only and is confidential 
information. If you have received this transmission in error, please 
delete it and notify the sender. The content of this e-mail is the 
opinion of the writer only and is not endorsed by Sabinet Online Limited 
unless expressly stated otherwise.

View raw message