Coder Social home page Coder Social logo

scripts's Introduction

Scripts

Use of several FQL operators and parameters have been deprecated in SharePoint Online 
(as of Feb 2021).
https://techcommunity.microsoft.com/t5/microsoft-search-blog/we-re-making-changes-to-search-in-sharepoint-online/ba-p/1971119
  
The script examines the query template for Result Sources and Query Rules for FQL keywords.
To run, specificy a user name with Admin privileges.  Then choose to scan "All" sites or
a single site.  When scanning all sites, add the -All switch and specify the tenant admin 
site (typically has the format https://<my_tenant>-admin.sharepoint.com).  To scan a single 
site, specify the site Url (e.g. https://<my_tenant>.sharepoint.com) and the SiteCollection
or Site scope.

FQL Operators
FAST Query Language (FQL) operators are keywords that specify Boolean operations or other 
constraints to operands. The FQL operator syntax is as follows:

[property-spec:]operator(operand [,operand]* [, parameter="value"]*)

This script looks for: 
    1.  The pattern "<operator>(" using the following reserved FQL keywords:
        "and", "or", "any", "andnot", "count", "decimal", "rank", "near", "onear", "int", 
        "in32", "int64", "float", "double", "datetime", "max", "min", "range", "phrase", 
        "scope", "filter", "not", "string", "starts-with", "ends-with", "equals", "words", 
        "xrank"

    2.  The following deprecated operators:
        "count","filter","any"

    3.  The following deprecated parameters for the specific operator:
        "string": ["linguistics","wildcard"]

EXAMPLES
# All Sites
.\Find-SPOFQL.ps1 -UserName [email protected] -TenantAdminSite https://MyTenant-admin.sharepoint.com/ -All
# Specific site and scope
.\Find-SPOFQL.ps1 -UserName [email protected] -Site https://MyTenant.sharepoint.com -Scope SiteCollection

EXAMPLE OUTPUT
   * Checking site 'https://MyTenant-admin.sharepoint.com' at scope 'Subscription'...
   * Found FQL operator 'string' in query template for Query Rule 'FQL Query Rule - Result Block'
     title:string({subjectTerms})
   * Found deprecated FQL operator 'filter' in query template for Result Source 'FQL Deprecated Opearator'
     filter(and({searchTerms}, "fql"))
   * Found deprecated FQL parameter 'linguistics' for operator 'string' in query template for Result Source 'FQL Deprecated Parameter'
     string("{searchTerms}", linguistics="off")  
   * Found FQL operator 'string' in query template for Result Source 'FQL Test Source'
     title:string({searchTerms})

scripts's People

Contributors

edixon-github avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.