--- On Sun, 2/20/11, Paul Tomblin <[email protected]> wrote:
> From: Paul Tomblin <[email protected]>
> Subject: Re: How to get a field that starts with a minus?
> To: [email protected]
> Date: Sunday, February 20, 2011, 5:53 PM
> Yes, it's string:
> <fieldType name="string"
> class="solr.StrField"
>
> sortMissingLast="true" omitNorms="true"/>
> <field name="id"
> type="string" stored="true" indexed="true"/>
No, string is OK. In this case it is better to use raw or field query parser.
SolrQuery.setQuery("{!raw f=id}-3f66fdfb1ef5f8719f65a7403e93cc9d");