Correct way to enter date criteria in a parameter query - ms-access-2013

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.

Related

Use a Field value in a Query (Seblod Query plugin)

I'm using the Query plugin that lets me create a Query field on my List & Search.
I have a hidden field with ID 'id_number' which I'm trying to use in my query. When I check the Page Source(Ctrl+U on Chrome), the hidden field has the correct value of id_number which is '22865'.
The part of my Query is-
WHERE [MATCH]p.pid||$cck->getValue('id_number')[/MATCH] AND (ban_reason in ("", "active"))
When I print this query out using the Debugger, the Query is using the literal value and querying the above as-
(p.pid LIKE '%$cck->getValue(\'id\_number\')%') ....and not like (p.pid LIKE '%22865%')
I also tried using $fields['id_number']->value but it still queries it incorrectly.
Should I not use $cck->getValue('id_number') to get the value of the hidden field in the query? Or is there something other than this that I need to use?

Create URL on string fields in kibana using two filters , the value of the field and the timestamp

I am looking to create URL on string field called "session name" in kibana interface to be redirected to an other search.
In my URL I need to use two queries, one based on the field value, for that I used '{{value}}' and the second one using the #timestamp value.
I have bieng trying "{{rawValue:#timestamp}}" but in vain.
My goal is two link two searchs based one the fields "session name" and the timestamp.
Any one can help?

how to search in kibana (lucene syntaxe) values containing "?"?

I am using ELK and I need to filter all the documents with an unmatched COUNTRY (from geoip)
Theses properties looks like:
'IPCOUNTRY': '??'
But I just can't filter on this special value...
I tried
IPCOUNTRY:?? => ? is evaluated > returns all records > normal case-
IPCOUNTRY:\?\? => Doesn't return any document... but lucene documentation says it should be the good way of achieving this...
IPCOUNTRY:"??" => doesnt work
IPCOUNTRY:'??' => doesnt work
EDIT:
This case doesn't work too
- IPCOUNTRY:/[^A-Z]{2}/
Simple but boring issue ^^
Thanx!
You could try :
!IPCOUNTRY:"?"
-IPCOUNTRY:"?"
NOT IPCOUNTRY:"?"
If you have an unanalyzed IPCOUNTRY field, you can do something like :
!IPCOUNTRY.raw:"??"
This is an elasticsearch mapping issue. Punctuation is dropped. You'll need to set your field to an analyzer that would keep ?. Maybe keyword? or not_analyzed?
extract from https://github.com/elastic/kibana/issues/6561#issuecomment-197951710
If all of your fields have documents same as 'IPCOUNTRY': '??', then you can directly filter this field which will exclude the field from matches.
To directly add a filter you can do it in the following 2 ways:-
In Discover page open the text and find the field. Click on + magnifier to add the field as a filter.
In Discover page, on the left side where fields are listed. Click on field name & select the value portaying as ?? to add it as a filter.

How to add a numeric filter on kibana dashboard?

I have a field that contains numbers. I want a filter that shows all logs that are less than a constant value.
When I try to add a new query filter, all I can see is a query string option.
If you are talking about the query field a syntax like this works:
field:<10
Will find just records with a field value less than 10. Found this by experimentation one day -- don't know if it's documented anywhere.

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.

Resources