whoosh icon indicating copy to clipboard operation
whoosh copied to clipboard

NUMERIC FieldType does not allow analyzers

Open ajslater opened this issue 1 year ago • 0 comments

The NUMERIC FieldType does not allow analyzers. The __init__() method accepts no analyzers and hardcodes self.analyzer = analysis.IDAnalyzer().

I've had to subclass NUMERIC to a FILESIZE FieldType to allow parsing of terms like "15mb". This would've been a lot easier if I could just submit a custom analyzer to NUMERIC.

ajslater avatar Jan 24 '23 05:01 ajslater