open-semantic-search
open-semantic-search copied to clipboard
Procedure to add a regex and facet
Hi, I'm trying to add regex parsing and facet but found no documentation on how to do it.
I just found #248 and tried to infer something from that, but I can't get it working.
First of all I created my own tsv regex file, put it into regex\myregex.tsv and referenced the file in etl-custom.
I created a simple credit card regex
[0-9]{4}\-?[0-9]{4}\-?[0-9]{4}\-?[0-9]{4}
and a file that matches in any possible way.
I supposed it was enough since this is the only part I found documented. But the issue above says he needed to create facets and groups using django interface. I created a new facet that is identical to iban_ss, called credicard_ss.
The facets file was modified with my facet
config['facets']['creditcard_ss'] = {'label': 'Credit card', 'uri': '', 'facet_limit': '20', 'snippets_limit': '10',}
I restarted the service and indexed a doc that contains credit cards.
The verbose log contains:
Checking regex [0-9]{4}\-?[0-9]{4}\-?[0-9]{4}\-?[0-9]{4} creditcard_ss for facet tag_ss
so I'm sure my regex is getting picked up, BUT:
- the creditcard_ss is not found/tied to the document (it is seen as a phone number)
- the facet selector does not appear at all What am I missing here? Is there a complete document with the procedure? Also, #248 says something about groups but any tentative to create a group leads to an error
AttributeError at /admin/thesaurus/group/add/
'Group' object has no attribute 'title'
I need to create dozens of regexes... Using deb install on ubuntu 20.04. Thank you
I've got a similar (at least how it manifests) problem using the "group manager" in the django admin interface. Trying to add a group results in the same exception
AttributeError at /admin/thesaurus/group/add/
'Group' object has no attribute 'title'
I've got a similar (at least how it manifests) problem using the "group manager" in the django admin interface. Trying to add a group results in the same exception
AttributeError at /admin/thesaurus/group/add/
'Group' object has no attribute 'title'
Same problem here, is there any solution os far?
Same here. AttributeError 'Group' object has no attribute 'title'
Still no development? The same problem persists... Is there any solutions, does anyone know what is the cause of this error?