Thank you so much! This is very helpful

On 6/21/19, 12:35 PM, "Alexandre Rafalovitch" <arafa...@gmail.com> wrote:

    The easiest way is to do that with Update Request Processors:
    https://lucene.apache.org/solr/guide/7_7/update-request-processors.html
    
    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:
    http://www.solr-start.com/info/update-request-processors/ (it is a bit out
    of date).
    
    Regards,
      Alex.
    
    On Fri, Jun 21, 2019, 2:19 PM Muaawia Bin Arshad, <amuaa...@abebooks.com>
    wrote:
    
    > 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
    >
    

Reply via email to