lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Bell <billnb...@gmail.com>
Subject Re: copy field from boolean to int
Date Wed, 18 Mar 2015 05:25:38 GMT
Can you reindex? Just use 1,0.

On Tue, Mar 17, 2015 at 6:08 PM, Chris Hostetter <hossman_lucene@fucit.org>
wrote:

>
> Can you open a jira to add docValues support for BoolField? ... i can't
> think of any good reason not to directly support that in Solr for
> BoolField ... seems like just an oversight that slipped through the
> cracks.
>
>
> For now, your best bet is probably to use an UpdateProcessor ... maybe 2
> instances of RegexReplaceProcessorFactory to match "true" and "false" and
> replace them with "0" and "1" ?
>
>
> : Date: Tue, 17 Mar 2015 17:57:03 -0700
> : From: Kevin Osborn <kosborn@centraldesktop.com>
> : Reply-To: solr-user@lucene.apache.org
> : To: solr-user@lucene.apache.org
> : Subject: copy field from boolean to int
> :
> : I was hoping to use DocValues, but one of my fields is a boolean, which
> is
> : not currently supported by DocValues. I can use a copyField to convert my
> : boolean to a string. Is there is anyway to use a copyField to convert
> from
> : a boolean to a tint?
>
>
> -Hoss
> http://www.lucidworks.com/
>



-- 
Bill Bell
billnbell@gmail.com
cell 720-256-8076

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message