-
-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SharePoint API: search namespace enhancements #496
- Loading branch information
Showing
18 changed files
with
124 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...nt/recyclebin/recycleBinItemCollection.py → .../sharepoint/recyclebin/item_collection.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from office365.runtime.client_value import ClientValue | ||
|
||
|
||
class QueryConfiguration(ClientValue): | ||
"""This object contains the query configuration for the local farm and is the response | ||
to the REST call get query configuration (section 3.1.5.18.2.1.6).""" | ||
|
||
def __init__(self): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from office365.runtime.client_value import ClientValue | ||
|
||
|
||
class QueryContext(ClientValue): | ||
"""This object contains the query context properties.""" | ||
pass |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from office365.runtime.client_value import ClientValue | ||
from office365.runtime.types.string_collection import StringCollection | ||
|
||
|
||
class QuerySuggestionResults(ClientValue): | ||
""" | ||
The QuerySuggestionResults complex type is a container for arrays of query suggestions, people name suggestions, | ||
and personal result suggestions. | ||
""" | ||
|
||
def __init__(self, people_names=None): | ||
""" | ||
:param list[str] people_names: People names suggested for the user query. MUST be null if | ||
ShowPeopleNameSuggestions in properties input element is set to false. | ||
""" | ||
self.PeopleNames = StringCollection(people_names) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,22 @@ | ||
from office365.runtime.client_result import ClientResult | ||
from office365.runtime.queries.service_operation_query import ServiceOperationQuery | ||
from office365.sharepoint.base_entity import BaseEntity | ||
from office365.sharepoint.search.query.configuration import QueryConfiguration | ||
|
||
|
||
class SearchSetting(BaseEntity): | ||
pass | ||
"""This object provides the REST operations defined under search settings.""" | ||
|
||
def get_query_configuration(self, call_local_search_farms_only=True): | ||
""" | ||
This REST operation gets the query configuration. See section 3.1.5.18.2.1.6. | ||
:param bool call_local_search_farms_only: This is a flag that indicates to only call the local search farm. | ||
""" | ||
result = ClientResult(self.context, QueryConfiguration()) | ||
payload = { | ||
"callLocalSearchFarmsOnly": call_local_search_farms_only | ||
} | ||
qry = ServiceOperationQuery(self, "getqueryconfiguration", None, payload, None, result) | ||
self.context.add_query(qry) | ||
return result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters