Ah perfect - thank you Jan so much. :-)

On Tue, Jan 24, 2012 at 11:14 AM, Jan Høydahl <jan....@cominvent.com> wrote:
> Hi,
>
> It's because lowernames=true by default in solrconfig.xml, and it will 
> convert any "-" into "_" in field names. So try adding a request parameter 
> &lowernames=false or change the default in solrconfig.xml. Alternatively, 
> leave as is but name your fields project_id and company_id :)
>
> http://wiki.apache.org/solr/ExtractingRequestHandler#Input_Parameters
>
> --
> Jan Høydahl, search solution architect
> Cominvent AS - www.cominvent.com
> Solr Training - www.solrtraining.com
>
> On 23. jan. 2012, at 22:26, Wayne W wrote:
>
>> Hi,
>>
>> Im been trying to figure this out now for a few days and I'm just not
>> getting anywhere, so any pointers would be MOST welcome. I'm in the
>> process of upgrading from 1.3 to the latest and greatest version of
>> Solr and I'm getting there slowly. However I have this (final) problem
>> that when sending a document for extraction, 2 of my fields defined in
>> my schema are ignored. When I don't using the extraction the fields
>> are used fine (I can see them via Luke).
>>
>> My schema has:
>> <field name="uid" type="string" stored="true"/>
>>        <field name="type" type="string" stored="true" />
>>        <field name="id" indexed="false" type="long" stored="true"/>
>>        <field name="project-id" type="long" stored="true"/>
>>        <field name="company-id" type="long" stored="true"/>
>>        <field name="importTimestamp" type="long" stored="true"/>
>>        <field name="label" type="text_ws" indexed="true"
>> stored="true" multiValued="true" omitNorms="true"/>
>>        <field name="text" type="text" indexed="true" stored="true"
>> multiValued="true" />
>>        <field name="title" type="text" indexed="true" stored="true"
>> multiValued="true"/>
>>        <field name="date" type="date" indexed="true" stored="true"
>> multiValued="true"/>
>>
>>
>> My request:
>> INFO: [] webapp=/solr path=/update/extract
>> params={literal.company-id=8&literal.uid=hub.app.model.Document#203657&literal.date=2012-01-23T21:10:42Z&literal.id=203657&literal.type=hub.app.model.Document&idx.attr=true&literal.label=&literal.title=hotel+surfers.pdf&def.fl=text&literal.project-id=36}
>> status=0 QTime=3579
>> Jan 24, 2012 8:10:58 AM org.apache.solr.update.DirectUpdateHandler2 commit
>>
>>
>> For unknown reasons the fields 'company-id', and 'project-id' are ignored.
>>
>> any ideas?
>> many thanks
>> Wayne
>

Reply via email to