Any way to filter on language?

Home Forums Advanced usage Any way to filter on language?

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #244
    vegard
    Participant

    Hi

    Is there any way to set a search that is delimited by language?
    I´ve tried to set my search and then “lang:no” – but it does not seem to be working.. any help would be appriciated (as I have no real idea what I´m doing here)

    #247
    mhawksey
    Keymaster

    In the API for search results a language filter needs to be added separate to your search query. To add a language filter with your sheet open select Tools > Script editor. In the code you’ll see an example advanced search parameter declaration

    //var advParams = {"geocode": "40.714353,-74.005973,30mi"};

    after this add a new line
    var advParams = {"lang": "no"};

    Save the script and when it runs it should filter new results on Norwegian

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.