I have objects with a string property (my-string) in the format of term1.term2:term3. I was expecting to be able to find these objects in Object Explorer (and in Workshop filters) by searching for any of these sub-terms (term1, term2, or term3), but that does not seem to be the case. How do I fix this?
By default, the period . and colon : are not used for splitting up search terms, so the string term1.term2:term3 is only findable if you search for the whole string. But there are ways to make this string property findable by the sub-terms.
- Add the sub-terms to another property but separate them by a character that splits up terms, like dash
-. Hence, you add the string ofterm1-term2-term3to another string property on the same object-type. Now a search for any of the search sub-terms (term1,term2orterm3) will find your object. To create the new property on your object-type do something like this:df = df.withColumn("my_string_search", F.regexp_replace(F.col("my_string"), '[.:]', '-')) - In the Ontology Management App, you can change the analyzer used for your original string property. If you change it from
StandardtoSimple(see screenshot below) it means that both period.and colon:are now also used to split search terms. So a search for any of the search sub-terms (term1,term2orterm3) will find your object.
Happy searching.
