lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: How to get a field that starts with a minus?
Date Sun, 20 Feb 2011 16:10:36 GMT

--- On Sun, 2/20/11, Paul Tomblin <ptomblin@xcski.com> wrote:

> From: Paul Tomblin <ptomblin@xcski.com>
> Subject: Re: How to get a field that starts with a minus?
> To: solr-user@lucene.apache.org
> 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");



      

Mime
View raw message