Wildcards in news search

viquar.shaikh
viquar.shaikh Newcomer
edited February 17 in Eikon Data APIs

Hello,

I'm trying to build a news query and was wondering if there was a way to pass through freetext phrases that could use wildcards. For example, I have this below

( ( Topic:FUND AND Language:LEN ) NOT ( Source:DJN OR Source:FT ) NOT ( \"Net Asset\" ) )

But the text search ignores the filter if the news phrase is "Net Assets". Is there a way I could use a wild card in the query or would I need to specify the two separately?

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @viquar.shaikh

    Thank you for reaching out to us.

    If you are using the Eikon Data API, the code looks like this:

    df = ek.get_news_headlines('( ( Topic:FUND AND Language:LEN ) NOT ( Source:DJN OR Source:FT ) NOT ( \\\"Net Asset\\\" ) )',count=100)
    df
    
    

    If you are using Refinitiv Data Library or LSEG Data Library, the code looks like this:

    ld.news.get_headlines("( ( Topic:FUND AND Language:LEN ) NOT ( Source:DJN OR Source:FT ) NOT ( \"Net Asset\" ) )", count =100)
    
  • Thank you for looking into it.

    I am using the Eikon Data API. I should have probably phrased my question better.

    What I was trying to ask is, if I search for a particular term is it possible to get associated terms in it, either through wildcards or some fuzzy logic mechanism.

    For example, if I say "Net Asset", is there a way it could also catch "Net Assets"? Similarly, if search for "quarter", is there a way to pick up "Quarterly" in that same search?

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    As far as I know, the query is similar to the query used in the news monitor app in Eikon or Workspace.

    You need to contact the Eikon or Workspace support team directly via MyAccount for the wildcards or logic.