Refer to a field name in a collection which has a white space character - filter

I have a collection "Accounts". In that, we have a field which is "Full Name".How to refer to this field in a filter function. I used the following formula:
Filter(Accounts,'Full Name' in TextInput2.Text)
Here TextInput2.Text is a text input. When I apply this formula,it says 'Full Name' is not recognized.
I expected it to filter by using the 'Full Name' field name.But its saying name not recognized.

Related

Open/Elastic Search DQL to filter where field exists and non-empty

As documented https://opensearch.org/docs/latest/dashboards/discover/dql/, We can filter the data based on if the field exists as below
name:*
The above will filter the results where the name field exists. This name field can be empty also.
But I want to consider only the results where the name field is also non-empty.
How can I do that?

elasticseach similarity mechanism in array field

My usecase is I have a field called subjects in elasticsearch index which is a list. This field will be having multiple values. For example one doc has ['subject one', 'subject two', 'subject three'] in field subjects, another doc has ['one test', 'one example', 'two'] in field name. So when I search for subject one in field name, I should get the first document first since it is most relevant, but I was getting the second doc first, even though I am sorting the result by _score.
Basically what I want is for when the user searches multiple search terms, and if all the search terms are present in one documents field then that document should get listed first. For text fields and all, it works fine, But for array fields, it didn't. my list field has more data.
Is there anyway that we can achieve this using any ES similarity mechanisms like BM25..
Thank you

Correct way to enter date criteria in a parameter query

When I enter in criteria field for a date field like <#19-08-2018#, It works but when I want to enter as a parameter query and If I write there in the pop-up box <#19-08-2018# , it gives the error "Data type mismatch in the criteria expression". Pl let me know the correct way to enter this type of criteria in parameter query.
I found the correct way and that is I have to enter parameter criteria as < [Enter Date:] in the criteria field and then it works.

squiz matrix Show the search terms entered by the user

I aim doing a search feature with in squiz matrix what i am trying to do is to out put the users search term on to the results page using this:
Please note, is the name of the field that was entered when it was created on the Search
%_query_terms%
This will show the terms the user entered into the search field.
my keyword line is:
%queries_search_query_query_terms%
Can anyone help
Right click on your search asset and go to search fields screen. Note the name of your search field. Lets say it is xyz. You keyword would then be %xyz_query_terms%
OR
You can do this - %globals_get_queries_search_query%.
#Anton Palitsyn was right in their answer. From the Squiz Matrix manuals it says
%_query_terms%: where is the name of the field that was entered when it was created on the Search Fields screen. For example, if you entered the name Keyword, this will be %keyword_query_terms%. This will show the terms the user entered into the search field.
The Search Page Keyword Replacements can be found at http://manuals.matrix.squizsuite.net/search/appendices/keyword-replacements
You should check out http://manuals.matrix.squizsuite.net/search/chapters/search-page as it has all the info you need.

Sunspot: can't use "order_by" on text fields?

If I try to use order_by on a text field I get: "no field configured with name title".
Works fine on fields of type "string". So I end up using a workaround like:
searchable do
text :title
string :title_sortable do
title
end
end
Is there any reason why we cannot order_by on text fields?
This is by Solr design. Text fields are tokenized. Sorting on a tokenized field does not make sense.
Consider the following two white space tokenized fields in two different docs.
"quick fire ammo"
"black bear"
When you sort them in ascending order, the first one should not appear before the second, just because it has the word "ammo" in it.
That is why, the sortable fields should be defined as String.

Resources