lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Grant <>
Subject Strange behaviour with copyField
Date Wed, 03 Jun 2009 12:09:10 GMT
I've been hitting my head against a wall all morning trying to figure 
this out and haven't managed to get anywhere and wondered if anybody 
here can help.

I have defined a field type

    <fieldType name="text_au" class="solr.TextField" 
        <tokenizer class="solr.LowerCaseTokenizerFactory" />

I have two fields

<field name="au" type="text_au" indexed="true" stored="true" 
required="false" multiValued="true"/>
<field name="author" type="text_au" indexed="true" stored="false" 

and a copyField line

<copyField source="au" dest="author" />

The idea is to allow searching for authors so a search for 
"author:(Hobbs A.U.)" will match the au field value "Hobbs A. U." 
(notice the space).

However the query "au:(Hobbs A.U.)" matches and the the query 
"author:(Hobbs A.U.)" does not.

Any ideas?

I'm using a Solr 1.4 snapshot



View raw message