OR notification in SOLR metadata for facets - search

We are working on Apache solr engine integration with IBM WCS. On applying multiple facets on the pages the previous facets will be converted to some encoded form using Base64 algorithm.
i.e When we will apply three facets F1, F2 and F3, first two F1 and F2 will be encoded and added to metaData field of URL param. and third parameter F3 will go into facet param. and those two previous facets F1 and F2 will be AND'ed using some special character in SOLR. That special character is something line below, <MT#SP>
F1 <MT#SP> F2
May i know what is the similar charater with which i can do logical OR? Like
F1 OR F2???????

Related

Excel convert multiple columns to dataset based on unique timestamp

I want to convert(Formula or way to do it) excel from one output to another for google maps csv upload to plot data on maps.
Example:
Original CSV:
Expected output for mymaps API:
Also note that this coordinates are not constant and changing across the city or state.
Attempt 1) Manual but dataset is too large
Attempt 2) Text to Column but that only supports via delimiters
F2 =UNIQUE($B$2:$B$20)
G2 =FILTER($C$2:$C$20;($B$2:$B$20=$F2)*($A$2:$A$20=G$1))
H2 =FILTER($C$2:$C$20;($B$2:$B$20=$F2)*($A$2:$A$20=H$1))
With O365 you can try the following in E1 and you can get the entire result including the header:
=LET(id, A2:A5, time, B2:B5, str, C2:C5, idUx, SORT(UNIQUE(id)),
timeUx, UNIQUE(time),GET, LAMBDA(tt,ii, XLOOKUP(tt&"|"&ii, time&"|"&id, str)),
REDUCE(HSTACK("ref_time", TOROW(idUx)), timeUx, LAMBDA(ac,t,
VSTACK(ac, HSTACK(t, GET(t,INDEX(idUx,1)), GET(t, INDEX(idUx,2)))))))
Here is the output:
Check the following question on how to use REDUCE/VSTACK pattern to generate each row: how to transform a table in Excel from vertical to horizontal but with different length. We use GET user LAMBDA function to avoid repeating the same calculation with different inputs (tt,ii). Just update the input range names (id, time, str) for your real problem. Added "|" to concatenate the search for more than one value, to avoid any false positive. Check #JvdV answer for more detail and comments. It can be avoided using MMULT, but it produces a more verbose formula. Due to the nature of your data, I don't think it is necessary, using a delimiter will be enough.

How to do - wildcard search in Data Catalog (Google Cloud Platform)

How to execute a wildcard/RegEx search in Data Catalog (Google Cloud Platform) ?
It would make sense to search metadata across column names and tag attributes (and there values).
The current documentation only lists very strict search behavior
e.g. for tag:data_gov_template.hasPII(=true)
Needed would be a result for "PII" - I don't care about specifying the exact template name etc.
e.g. labels:etl
if I only search for etl there is no result
(metadata/attributes and values is not searchable on a direct way?)
From your use case, I understood that you want to search for a particular metadata attribute, like a Tag field, PII, right?
For tagged assets
If you don't care about the template name. You could use the tag:x search facet.
So if all your templates, data_gov_template, data_curator_template, data_etl_template, all contain the same Tag field name, has_pii, you can search using:
tag:has_pii and this will return all assets with that metadata attribute, no matter what the template name is.
For columns
You can use the column:x search facet to match a substring of the column name in the schema of the data asset. Which does not support nested columns yet.
For labels
You can use the labels:bar search facet for data assets that have a label (with some value) and the label key has bar as a substring.
You are also able to search on their values. So yes, the metadata/attributes and values are searchable.
But it is not a regex kind, it is a substring match when the search facet uses colon :, like labels:bar or an exact match when the search facet uses equals =, like type=table.

How to include a dash(-) character in the Natural key

A custom DAC has a PK that is 10 characters length. The characters include a dash. Example: 10-117ASKP. I notice that it's not possible to type the dash character, in the UI. So I'm unable to assign the value. I added the correct value directly in the database table. The record is saved, but the UI shows the value without the dash. How to accomplish the goal?

REGEXEXTRACT or SPLIT TEXT STRING?

I am trying to create formulae that I've never used before and I'm having an issue. I have the following string as a result of my VLOOKUP:
SONIC (325.2 – 3285.1m);DIL (328.6 – 3284.5m);C-ANAL (10.0 – 200.0m);PERF (3169.9 – 3246.1m);COMP (3137.0 – 3175.0m);PA (10.0 – 3260.4m);TNL (3136.4 – 3272.6m);EPS (10.0 – 3156.0m);PERF (3169.9 – 3226.9m);COMP (3080.0 – 3120.0m);PA (10.0 – 410.0m);
I am trying to have the one (result cell) only show me the "PERF" part of the string (and what's within the brackets). I can only get it to show me the 1st instance by using REGEXEXTRACT and have also tried splitting with no positive results; as you can see there are multiple instances (up to 5 in a row).
Can anyone assist?
I am not sure I understand exactly what you want to return, but you can try this query. It splits the values at ';' and transposes them into a column and queries that column for contains 'PERF'. The join then puts them back together in a single cell separated by ';'.
=JOIN(";",query(transpose(split(A1,";")),"select * where Col1 contains 'PERF'"))
You may need to replace the ','s with ';'s depending on your regional settings.

Google Site Search - Filtering with PageMap attributes that contain blanks / special characters

We're using a PageMap to provide structured data with our Html content. Part of this structured data are keywords that are displayed on the result page. Furthermore, it should also be possible to filter the results with such a keyword.
We do have keywords that contain spaces as well as special characters. So here's an excerpt of a result element returned by the XML API of the Google Site Search:
<PageMap>
<DataObject type="document">
<Attribute name="mykeywords">Computer & Hobby</Attribute>
...
</DataObject>
</PageMap>
This works perfectly for displaying the result. However, for filtering we would have to pass a query like that:
more:pagemap:document-mykeywords:computer___hobby
How can we determine the query string from the result in the XML? Simply by lowercasing the value and replacing every non word character with _? How reliable is this?
Or is it better to provide two distinct attributes in our PageMap, one for the label of the keyword and the other for the id of the keyword?

Resources