mchaput / whoosh

Pure-Python full-text search library
Other
569 stars 69 forks source link

NUMERIC FieldType does not allow analyzers #34

Open ajslater opened 1 year ago

ajslater commented 1 year ago

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.