question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Search: Handle selected properties for List operations

See original GitHub issue

Many of our List operations for SearchServiceClient accept an optional list of property names, but for .NET this isn’t as intuitive since model property names like Name won’t actually work (server error): name is required. Additionally, while etag is also not recognized, @odata.etag (theunderlying property name) causes a different server error: that @odata.etag is not allowed in $select or $expand query parameters.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
brjohnstmsftcommented, Apr 21, 2020

An alternative to exposing this parameter on the client would be to have Get[Resource]Names APIs instead. That’s the original purpose behind adding $select to those REST APIs in the first place. Those APIs actually run much faster with $select=name because we use a different code path in the service that doesn’t retrieve all the metadata, only enumerates the names.

1reaction
brjohnstmsftcommented, Apr 21, 2020

@heaths A parameter like onlyName would work, although the response would be less convenient to consume than having a dedicated Get…Names API. Choosing between them might come down to which is most discoverable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to implement search on property in list (Collection)
how to implement search on property in list (Collection) · First write a search using a plain old loop. · Can you elaborate...
Read more >
List Operation
1 Introduction The List operation activity can perform various actions on a list. The result of the action is returned as a new...
Read more >
Filter, Search, and LookUp functions in Power Apps
On the Properties tab of the right-hand pane, open Data Source and then select Accounts. (Optional) In the Layout list, select different options ......
Read more >
List-specific operations
To search an element in a sorted list, call the binarySearch() function passing the value as an argument. If such an element exists,...
Read more >
Customizing Search Results Lists - Cherwell Help - Ivanti
To customize the items displayed in Search Results when a list is shown: Open CSM Administrator . Create a Blueprint. Select ... Select...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found