For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
5 1 1 7

OR logical operator is not symmetric in keyword based search in SCREENER: is this a bug?

Let us say I want to find all private companies that either contain the keyword "well being" or "well-being" in the Business Description. The way to do this using the Eikon API is the following:


syntax = "SCREEN(U(IN(Private(OrgType(COM, UNK, MKP)))),"\
           "Contains(TR.BusinessSummary,'well-being') OR Contains(TR.BusinessSummary,'well being'),"\
           "CURN=USD, TR.OrganizationStatusCode=Act)"
fields = ["TR.CommonName", "TR.BusinessSummary"]
df, e = ek.get_data(syntax, fields)

Now, ['well-being' OR 'well being'] and ['well being' OR 'well-being'] should give the exact same result. But it does not. The following code shows the issue:

syntax_1 = "SCREEN(U(IN(Private(OrgType(COM, UNK, MKP)))),"\
           "Contains(TR.BusinessSummary,'well-being') OR Contains(TR.BusinessSummary,'well being'),"\
           "CURN=USD, TR.OrganizationStatusCode=Act)"

syntax_2 = "SCREEN(U(IN(Private(OrgType(COM, UNK, MKP)))),"\
           "Contains(TR.BusinessSummary,'well being') OR Contains(TR.BusinessSummary,'well-being'),"\
           "CURN=USD, TR.OrganizationStatusCode=Act)"

fields = ["TR.CommonName", "TR.BusinessSummary"]

df_1, e = ek.get_data(syntax_1, fields)
df_2, e = ek.get_data(syntax_2, fields)
print(len(df_1))
print(len(df_2))

len(df_1) is 62 and len(df_2) is 349.

Seems like this is a bug? Or am I doing something wrong?

@zoya faberov I think you might know this. Thank you.

eikoneikon-data-apipythonworkspaceworkspace-data-apirefinitiv-data-platformdatascreener
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvote
Accepted
31.7k 37 11 19

Hello @bm01 and all,

Writing to let you know that the suspected issue has been escalated to product and is being investigated.

We will update the forums once the investigation is completed.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hello @zoya faberov, any news on the issue?
Hello @bm01,

Please be informed that there is an issue opened, under investigation, and we will update the community with findings as soon as.

Hello @bm01

I have checked our internal ticket. This issue has been fixed on the screener app.
Could you please retest the issue?

Upvote
52.7k 135 44 63

@bm01

I found that the problem has been fixed.

1660801055869.png

Could you please confirm if the problem has been resolved?



1660801055869.png (40.8 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.