open-semantic-search icon indicating copy to clipboard operation
open-semantic-search copied to clipboard

Procedure to add a regex and facet

Open LoZio opened this issue 3 years ago • 4 comments

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:

  1. the creditcard_ss is not found/tied to the document (it is seen as a phone number)
  2. 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

LoZio avatar Dec 27 '20 15:12 LoZio

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'

schneipk avatar Mar 15 '21 15:03 schneipk

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?

urosch avatar Apr 14 '21 19:04 urosch

Same here. AttributeError 'Group' object has no attribute 'title'

image

chrbratt avatar May 06 '21 06:05 chrbratt

Still no development? The same problem persists... Is there any solutions, does anyone know what is the cause of this error?

urosch avatar Feb 26 '22 18:02 urosch