folding => {
filter => ['lowercase', 'asciifolding'],
tokenizer => 'standard'
+ },
+ stripdots => {
+ # "R.E.M." => "REM"
+ char_filter => ['stripdots'],
+ filter => ['lowercase'],
+ tokenizer => 'standard'
+ },
+ spacedots => {
+ # "R.E.M." => "R E M"
+ char_filter => ['spacedots'],
+ filter => ['lowercase'],
+ tokenizer => 'standard'
}
},
normalizer => {
type => 'custom',
filter => ['lowercase']
}
+ },
+ char_filter => {
+ stripdots => {
+ type => 'mapping',
+ mappings => ['. =>']
+ },
+ spacedots => {
+ type => 'mapping',
+ mappings => ['. => " "']
+ }
}
}
};
normalizer => 'custom_lowercase',
fields => {
text => {type => 'text'},
- text_folded => {type => 'text', analyzer => 'folding'}
+ text_folded => {type => 'text', analyzer => 'folding'},
+ text_spacedots => {type => 'text', analyzer => 'spacedots'},
+ text_stripdots => {type => 'text', analyzer => 'stripdots'}
}
},
author => {
normalizer => 'custom_lowercase',
fields => {
text => {type => 'text'},
- text_folded => {type => 'text', analyzer => 'folding'}
+ text_folded => {type => 'text', analyzer => 'folding'},
+ text_spacedots => {type => 'text', analyzer => 'spacedots'},
+ text_stripdots => {type => 'text', analyzer => 'stripdots'}
}
},
subject => {
normalizer => 'custom_lowercase',
fields => {
text => {type => 'text'},
- text_folded => {type => 'text', analyzer => 'folding'}
+ text_folded => {type => 'text', analyzer => 'folding'},
+ text_spacedots => {type => 'text', analyzer => 'spacedots'},
+ text_stripdots => {type => 'text', analyzer => 'stripdots'}
}
},
series => {
normalizer => 'custom_lowercase',
fields => {
text => {type => 'text'},
- text_folded => {type => 'text', analyzer => 'folding'}
+ text_folded => {type => 'text', analyzer => 'folding'},
+ text_spacedots => {type => 'text', analyzer => 'spacedots'},
+ text_stripdots => {type => 'text', analyzer => 'stripdots'}
}
},
keyword => {
ignore_above => 256,
fields => {
text => {type => 'text'},
- text_folded => {type => 'text', analyzer => 'folding'}
+ text_folded => {type => 'text', analyzer => 'folding'},
+ text_spacedots => {type => 'text', analyzer => 'spacedots'},
+ text_stripdots => {type => 'text', analyzer => 'stripdots'}
}
},
identifier => {