lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Rafalovitch <>
Subject Re: Derived Field Solr Schema
Date Fri, 21 Jun 2019 19:34:50 GMT
The easiest way is to do that with Update Request Processors:

Usually, you would clone a field and then do your transformations. For your
specific example, you could use:
*) FieldLengthUpdateProcessorFactory - int rather than boolean
*) StatelessScriptUpdateProcessorFactory - if you want to have full freedom
(but a bit slower indexing)
*) RegexReplaceProcessorFactory - maybe a bit trickier but also interesting.

You may also find this (mine) resource list interesting: (it is a bit out
of date).


On Fri, Jun 21, 2019, 2:19 PM Muaawia Bin Arshad, <>

> Hi Everyone,
> I am fairly new to solr and I was wondering if there is a way in solr 7.7
> to populate fields based on some pre-processing on other field. So let’s
> say I have a field called fieldX defined in the schema, I want to define
> another field called isFieldXgood which is just a Boolean field that shows
> whether the length of fieldX is larger than 10.
> Thanks,
> Muaawia Bin Arshad

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