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.

Multiple warnings generated using SearchField

See original GitHub issue
  • Package Name: azure-search-documents
  • Package Version: 11.0.0
  • Operating System: Windows
  • Python Version: 3.8.1

Exact same issue as #12455 - Not too much more I can add. The index gets created successfully despite the warnings. I’m basically just following the examples provided in this repo.

Code:

# Imports
from azure.core.credentials import AzureKeyCredential
from azure.search.documents.indexes import SearchIndexerClient, SearchIndexClient
from azure.search.documents.indexes.models import SearchIndexerDataSourceConnection, SearchIndexerDataContainer, SearchableField, SearchFieldDataType, SearchIndex
from azure.core.exceptions import HttpResponseError

# Helper function
    def create_index(self, name, fields):
        client = SearchIndexClient(self.url, self.key)
        fields = [SearchableField(name=x, type=SearchFieldDataType.String) for x in fields]
        fields.append(SearchableField(name="id", type=SearchFieldDataType.String, key=True))
        index = SearchIndex(name=name, fields=fields)
        client.create_index(index)
hidden is not a known attribute of class <class 'azure.search.documents.indexes._internal._generated.models._models_py3.SearchField'> and will be ignored
analyzer_name is not a known attribute of class <class 'azure.search.documents.indexes._internal._generated.models._models_py3.SearchField'> and will be ignored
search_analyzer_name is not a known attribute of class <class 'azure.search.documents.indexes._internal._generated.models._models_py3.SearchField'> and will be ignored
index_analyzer_name is not a known attribute of class <class 'azure.search.documents.indexes._internal._generated.models._models_py3.SearchField'> and will be ignored
synonym_map_names is not a known attribute of class <class 'azure.search.documents.indexes._internal._generated.models._models_py3.SearchField'> and will be ignored
hidden is not a known attribute of class <class 'azure.search.documents.indexes._internal._generated.models._models_py3.SearchField'> and will be ignored
analyzer_name is not a known attribute of class <class 'azure.search.documents.indexes._internal._generated.models._models_py3.SearchField'> and will be ignored
search_analyzer_name is not a known attribute of class <class 'azure.search.documents.indexes._internal._generated.models._models_py3.SearchField'> and will be ignored
index_analyzer_name is not a known attribute of class <class 'azure.search.documents.indexes._internal._generated.models._models_py3.SearchField'> and will be ignored
synonym_map_names is not a known attribute of class <class 'azure.search.documents.indexes._internal._generated.models._models_py3.SearchField'> and will be ignored
hidden is not a known attribute of class <class 'azure.search.documents.indexes._internal._generated.models._models_py3.SearchField'> and will be ignored
analyzer_name is not a known attribute of class <class 'azure.search.documents.indexes._internal._generated.models._models_py3.SearchField'> and will be ignored
search_analyzer_name is not a known attribute of class <class 'azure.search.documents.indexes._internal._generated.models._models_py3.SearchField'> and will be ignored
index_analyzer_name is not a known attribute of class <class 'azure.search.documents.indexes._internal._generated.models._models_py3.SearchField'> and will be ignored
synonym_map_names is not a known attribute of class <class 'azure.search.documents.indexes._internal._generated.models._models_py3.SearchField'> and will be ignored

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
xiangyan99commented, Dec 14, 2020

Latest version (11.1.0b4) has the fix. It is a beta version and a GA one will come soon. @binbrain

1reaction
xiangyan99commented, Oct 5, 2020

Thanks for reporting it. We have a fix which will be available soon. 😃 @axc450

Read more comments on GitHub >

github_iconTop Results From Across the Web

TextFields generate many warning/error messages in debug ...
a: error message Error messages from the Flutter framework a: text input Entering text in a text field or keyboard related problems.
Read more >
Add multiple search fields for contextual search
Add multiple search fields if you want to search from a field other than the short description without using the related search box....
Read more >
Sorting and Filtering Error Messages - CATIADOC
Multiple occurrences of the same message can be filtered and a generic message will be displayed. On selecting a particular message (error/warning), ...
Read more >
Advanced search reference - JQL fields | Jira Software Cloud
Your reference for fields that are used for advanced searching in Jira applications using Jira Query Language (JQL).
Read more >
Using regular expressions in the search field
When placed between two words, it indicates that one word or the other can be found in the text. To search for a...
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