تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تتضمّن خدمة Google Cloud Search عدة عمليات توسيع وتفسير وتحسين تلقائية تؤثر في نتائج البحث. إذا ظهرت لك نتائج غير متوقّعة من طلبات البحث، يُرجى الرجوع إلى هذا الدليل قبل التواصل مع فريق دعم Cloud Search.
عمليات التوسّع التلقائية
لنفترض أنّ أحد المستخدمين يبحث باستخدام سلسلة، مثل [ملفات PDF الخاصة بيوسف]، ولكن بعض النتائج المعروضة تحتوي على كلمات مميّزة، مثل "مستندات"، بدلاً من "ملفات PDF". لماذا تحتوي النتائج على الكلمات المميّزة التي لم تكن مضمّنة في طلب البحث؟
بشكل تلقائي، لا يبحث Google Cloud Search، تمامًا مثل "بحث الويب من Google"، عن الكلمات المطابقة تمامًا في طلب البحث فقط. بدلاً من ذلك، توسّع Cloud Search طلب البحث ليشمل المرادفات وجذور الكلمات (حتى إذا لم تكن قد نفّذت مرادفاتك الخاصة). ويتم إجراء هذا التوسيع لاسترداد المستندات التي تتطابق بشكل عام مع فكرة طلب البحث ونيّة المستخدِم. بعد اختيار هذه المجموعة الواسعة من المستندات، تعمل خوارزميات الترتيب على ضمان وضع أفضل النتائج المطابقة في أعلى مجموعة النتائج.
عندما بحث المستخدم عن [ملفات PDF الخاصة بـ "جو"]، قدّم Cloud Search ما يلي ككلمات إضافية مقبولة:
بالنسبة إلى [Joe’s]، قد تطابق Cloud Search أيضًا "joe" (توسيع جذع الكلمة) و "joes" (مرادف استنادًا إلى علامات الترقيم).
بالنسبة إلى [ملفات PDF]، قد تطابق Cloud Search أيضًا "المستندات" (توسيع المرادفات) و "pdf" (توسيع الجذور).
بشكلٍ تلقائي، لا تكون المرادفات بالضرورة ثنائية الاتجاه. على سبيل المثال، إذا بحث مستخدم عن عبارة "التصيّد الاحتيالي"، قد تطابق Cloud Search كلمة "تصيّد" باعتبارها توسيعًا للمرادفات. ومع ذلك، إذا بحث المستخدم عن عبارة "التصيّد"، قد لا تطابق Google عبارة "التصيّد الاحتيالي" كتوسيع.
تحسينات على الكلمات التي تتضمّن شرطة مقارنةً بالكلمات التي لا تتضمّن شرطة
عندما يبحث المستخدم عن كلمات تتضمّن شرطة مقارنةً بالكلمات المشابهة التي لا تتضمّن شرطة، مثل [walk-in closet] و[walk in closet]، يتعامل Cloud Search مع طلبات البحث هذه بشكل مختلف.
بالإضافة إلى ذلك، يتم استخدام عمليات تحسين مختلفة للكلمات التي تتضمّن شرطة أو شرطة سفلية، مثل [walk-in] و[walk_in].
التعويض عن عمليات التوسّع التلقائية
لا يوجد ضمان لأي توسّع تلقائي. إذا أردت ضمان التوافق الثنائي الاتجاه للمترادفات أو عمليات توسيع المترادفات الخاصة بمجال معيّن، يمكنك إنشاء مجموعة خاصة بك من المترادفات الخاصة بمجال معيّن. لمزيد من المعلومات حول تنفيذ المرادفات، يُرجى الاطّلاع على تحديد المرادفات.
التفسيرات التلقائية
يوفّر Cloud Search أيضًا ميزة تفسير اللغة الطبيعية التي تفسّر العناصر والسمات وقيم الحقول المستخدَمة في طلب بحث وفقًا للمخطط الذي تم تحميله لمصدر بيانات معيّن. للحصول على مزيد من المعلومات حول تفسير اللغة الطبيعية هذا، يمكنك الاطّلاع على تنظيم المخطط لتحقيق أفضل تفسير للطلبات.
توفّر Cloud Search أيضًا عمليات التحسين التلقائية التالية:
دمج النتائج المقدَّمة من خلال ميزة "التصحيح الإملائي" على سبيل المثال، إذا كان سلسلة طلب البحث هي [مزايا الشركات]، سيطابق Cloud Search كلمة "الشركات" مع الكلمة الصحيحة "شركات".
بالنسبة إلى طلبات البحث التي لا تعرض أي نتائج أو تعرض عددًا قليلاً منها، تستخدم Cloud Search مجموعة أكثر تساهلاً من العبارات ذات الصلة، وهي أوسع من المرادفات المباشرة، عند مطابقة النتائج. لمزيد من المعلومات، يُرجى الاطّلاع على مقالة
التعامل مع النتائج التكميلية.
تسوية المستندات وطلبات البحث
يشير التوحيد إلى توحيد الكلمات أو العبارات قبل إجراء طلب البحث أو بعده. لضمان الحصول على ردود أكثر اتساقًا على طلبات البحث، ننصحك بتوحيد تنسيق المستندات (قبل الفهرسة أو أثناءها) وطلبات البحث (بعد أن يقدّم المستخدم طلب البحث) بالطرق التالية:
لتسوية المستندات، اتّبِع الخطوات التالية:
اختَر طريقة كتابة أساسية للكلمات المهمة المستخدَمة في المستندات ضمن مستودعاتك.
عليك تصحيح الإملاء في مستندات مستودع المصدر أو عند فهرسة المحتوى ليتطابق مع الإملاء الأساسي.
لتسوية طلبات البحث، اتّبِع الخطوات التالية:
اعتراض طلبات بحث المستخدمين قبل إرسالها إلى Cloud Search
إعادة كتابة الكلمات في طلبات بحث المستخدمين لتتطابق مع طريقة الكتابة الأكثر شيوعًا في مصدر البيانات المفهرس
أرسِل طلب البحث إلى Cloud Search.
إيقاف عمليات التوسيع والتفسير والتحسين لجميع طلبات البحث
تاريخ التعديل الأخير: 2025-08-29 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-08-29 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# Compensate for default expansions, interpretations, and optimizations\n\nGoogle Cloud Search has several default expansions, interpretations, and\noptimizations that affect search results. If ever you are seeing unexpected\nresults from search queries, refer to this guide before contacting Cloud Search\nsupport.\n| **Note:** The example queries in this document are shown in square brackets to set them apart from words specified in quotes representing Google's interpretation of the query.\n| **Note:** The query results in this document don't represent guarantees of product behavior. Instead, the results shown in this document provide insight of how expansions, interpretations, and optimizations work.\n\nDefault expansions\n------------------\n\nSuppose a user is searching using a string, such as \\[Joe's PDFs\\], but\nsome returned results contain highlighted words, such as \"documents,\" instead of\n\"PDFs.\" Why do the results contain the highlighted words that weren't in the\nsearch query?\n\nBy default, Google Cloud Search, just like Google Web Search, doesn't only\nsearch for the exact words in a query. Instead Cloud Search expands the query\nto include synonyms and word stems (even if you haven't implemented your own\nsynonyms). This expansion is done to retrieve documents that broadly match the\nidea and intent of the query. After this broad set of documents is selected, the\nranking algorithms work to ensure that the best matches are placed at the top of\nthe result set.\n\nWhen the user searched for \\[Joe's PDFs\\], Cloud Search supplied the following as\nadditional acceptable words:\n\n- For \\[Joe's\\], Cloud Search might also match \"joe\" (a stem expansion) and \"joes\" (a synonym based on punctuation).\n- For \\[PDFs\\], Cloud Search might also match \"documents\" (a synonym expansion) and \"pdf\" (a stem expansion).\n\nBy default, synonyms are not necessarily bi-directional. For example, if a user\nsearches for the term \"phishing,\" Cloud Search might match \"phish\" as a synonym\nexpansion. However if the user searches for the term \"phish,\" Google might not\nmatch \"phishing\" as an expansion.\n\n### Expansions for hyphenated versus non-hyphenated words\n\nWhen the user searches for hyphenated words versus their non-hyphenated\nequivalents, such as \\[walk-in closet\\] and \\[walk in closet\\], Cloud Search\ntreats these queries differently.\n\nAdditionally, different optimizations are used for hyphenated and underscored\nwords, such as \\[walk-in\\] and \\[walk_in\\].\n\n### Compensate for default expansions\n\nThere is no guarantee of any expansion by default. If you want to\nensure bidirectionality of synonyms or domain-specific synonym expansions,\ncreate your own set of domain-specific synonyms. For further information on\nimplementing synonyms, refer to\n[Define synonyms](/workspace/cloud-search/docs/guides/synonyms).\n| **Note:** It is important to educate your users on the use of quotes for exact matching, either as options in your search interface or in your documentation. For example, instead of searching for \\[Joe's PDFs\\], search for \\[Joe's \"PDFs\"\\], where \"PDFs\" is in quotes, to return documents that exactly match the word \"PDFs.\"\n\nDefault interpretations\n-----------------------\n\nCloud Search also provides natural-language interpretation which\ninterprets the objects, properties, and field values used in a query according\nto the schema uploaded for a particular data source. For further information\nabout this natural-language interpretation, refer to\n[Structure your schema for optimal query interpretation](/workspace/cloud-search/docs/guides/query-interpretation).\n\n### Disable natural-language interpretations\n\nTo disable natural-language interpretations for a specific query, set\n[`QueryInterpretationOptions.disableNlInterpretation`](/workspace/cloud-search/docs/reference/rest/v1/query/search#queryinterpretationoptions)\nto `true` in the search request.\n\nDefault optimizations\n---------------------\n\nCloud Search provides these default optimizations as well:\n\n- Blending in results provided by spelling correction. For example, if the query\n string was \\[corpoate benefits\\], Cloud Search would match \"corpoate\" and the\n correct spelling of \"corporate.\"\n\n | **Note:** When a user incorrectly spells a word in a query, the query's response might contain a suggested spelling in the [`SpellResult`](/workspace/cloud-search/docs/reference/rest/v1/query/search#spellresult) field. Although the systems providing spelling and synonyms results are separate, the synonyms system might provide a correct spelling as a synonym for an incorrect spelling. For example, the user searches for \\[procss\\] and receives \"process\" as a synonym. The `SpellResult` field is only populated in the case of an actual spell correction.\n- For queries that would yield zero or few results, Cloud Search uses a more\n permissive set of related terms, broader than direct synonyms, when matching\n results. For further information, refer to\n [Handle supplemental results](/workspace/cloud-search/docs/guides/query-guide#display_query_results).\n\nNormalizing documents and queries\n---------------------------------\n\nNormalizing refers to standardizing on certain words or phrases either prior to\nor after a query has been made. To ensure more consistent responses to your\nqueries, consider normalizing your documents (prior to or during indexing) and\nqueries (after the user has made the query) in the following ways:\n\n- To normalize documents:\n\n 1. Pick a canonical spelling for critical words used in documents within your repositories.\n 2. Correct the spelling in source repository documents, or when indexing content, to match canonical spelling.\n- To normalize queries:\n\n 1. Intercept user queries before sending them to Cloud Search.\n 2. Rewrite words in user queries to match the most-common spelling in the indexed data source.\n 3. Send the query to Cloud Search.\n\nDisable expansions, interpretations, and optimizations for all queries\n----------------------------------------------------------------------\n\nTo disable expansions, interpretations and optimizations for a specific query,\nset\n[`QueryInterpretationOptions.enableVerbatim Mode`](/workspace/cloud-search/docs/reference/rest/v1/query/search#queryinterpretationoptions)\nto `true` in the search request."]]