Þ•    +      t  ;   Ì      ¸  !   ¹     Û  š   ï  "   Š     ­  ;   Á  £   ý  V   ¡  �   ø  H   ‰     Ò  
   æ     ñ                    #     *  &   /  H   V  {   Ÿ  \     ®   x  �   '	  c   Å	  i   )
  t   “
       ;     3   J  Å   ~  Œ   D  ^   Ñ  H   0  8   y  @   ²  Ú   ó     Î     à  ð   ì  M   Ý  	   +  1  5  !   g     ‰  š   �  "   8     [  ;   o  £   «  V   O  �   ¦  H   7     €  
   ”     Ÿ     ³     À     É     Ñ     Ø  &   Ý  H     {   M  \   É  ®   &  �   Õ  c   s  i   ×  t   A     ¶  ;   ¼  3   ø  Å   ,  Œ   ò  ^     H   Þ  8   '  @   `  Ú   ¡     |     Ž  ð   š  M   ‹  	   Ù                                       "                         '                  $            +                           *           &      (          
   )   #      	                !                 %    :doc:`/reference/commands/select` :doc:`snippet_html` A snippet includes one or more keywords. The max byte size of a snippet except open tag and close tag is 200byte. The unit isn't the number of characters. An element of array is a snippet:: Execution example:: Here are a schema definition and sample data to show usage. If you specify default open tag and default close tag and omit keywords, keywords are extracted from the current condition automatically like :doc:`snippet_html`:: If you specify default open tag and default close tag, you can specify only keywords:: If you want to use this function for normal Web application, :doc:`snippet_html` may be suitable. It's a HTML specific version of this function. It returns only one snippet because ``"max_n_results": 1`` is specified. Optional parameters Parameters Required parameters Return value See also Summary Syntax TODO TODO: ``html_escape`` option and so on The array size is larger than or equal to 1 and less than or equal to 3. The following example uses ``--query "fast performance"``. In this case, ``fast`` and ``performance`` are used as keywords. The max number of text parts is 3 by default. You can change it by ``max_n_results`` option: The max size of a text part is 200byte by default. The unit is bytes not characters. The size doesn't include inserted ``[`` and ``[``. You can change it by ``width`` option: This ``snippet`` returns two snippets for the first record and ``null`` for the second record. Because the second record doesn't have any specified keywords. This ``snippet`` surrounds ``fast`` with ``[`` and ``]]`` and ``performance`` with ``(`` and ``)``. This function extracts snippets of target text around search keywords (``KWIC``. ``KeyWord In Context``). This function returns an array of string or ``null``. If This function can't find any snippets, it returns ``null``. Usage You can change this by :ref:`snippet-max-n-results` option. You can change this by :ref:`snippet-width` option. You can detect snippet delimiter with regular expression by ``delimiter_regexp`` option. You can use ``\.\s*`` to use only text in the target sentence. Note that you need to escape ``\`` in string: You can see the detected delimiters (``.`` and following white spaces) aren't included in the result snippets. This is intentional behavior. You can specify keywords explicitly instead of extracting keywords from the current condition: You can specify one ore more tuples of keyword, open tag and close tag:: You can specify open tag and close tag for each keyword: You can specify options as the last argument with all syntaxes:: ``--query "fast performance"`` matches to only the first record's content. This ``snippet`` extracts two text parts that include the keywords ``fast`` or ``performance`` and surrounds the keywords with ``[`` and ``]``. ``max_n_results`` ``snippet`` ``snippet`` extracts keywords from conditions specified in ``--query`` and/or ``--filter`` automatically when you specify ``default_open_tag`` option and ``default_close_tag`` and don't specify keywords. It's similar to :doc:`snippet_html`. ``snippet`` requires at least one parameter that is the snippet target text:: ``width`` Project-Id-Version: Groonga 16.0.5
Report-Msgid-Bugs-To: 
PO-Revision-Date: 2026-05-22 06:03+0000
Last-Translator: Automatically generated
Language-Team: none
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Language: en
Plural-Forms: nplurals=2; plural=(n != 1);
 :doc:`/reference/commands/select` :doc:`snippet_html` A snippet includes one or more keywords. The max byte size of a snippet except open tag and close tag is 200byte. The unit isn't the number of characters. An element of array is a snippet:: Execution example:: Here are a schema definition and sample data to show usage. If you specify default open tag and default close tag and omit keywords, keywords are extracted from the current condition automatically like :doc:`snippet_html`:: If you specify default open tag and default close tag, you can specify only keywords:: If you want to use this function for normal Web application, :doc:`snippet_html` may be suitable. It's a HTML specific version of this function. It returns only one snippet because ``"max_n_results": 1`` is specified. Optional parameters Parameters Required parameters Return value See also Summary Syntax TODO TODO: ``html_escape`` option and so on The array size is larger than or equal to 1 and less than or equal to 3. The following example uses ``--query "fast performance"``. In this case, ``fast`` and ``performance`` are used as keywords. The max number of text parts is 3 by default. You can change it by ``max_n_results`` option: The max size of a text part is 200byte by default. The unit is bytes not characters. The size doesn't include inserted ``[`` and ``[``. You can change it by ``width`` option: This ``snippet`` returns two snippets for the first record and ``null`` for the second record. Because the second record doesn't have any specified keywords. This ``snippet`` surrounds ``fast`` with ``[`` and ``]]`` and ``performance`` with ``(`` and ``)``. This function extracts snippets of target text around search keywords (``KWIC``. ``KeyWord In Context``). This function returns an array of string or ``null``. If This function can't find any snippets, it returns ``null``. Usage You can change this by :ref:`snippet-max-n-results` option. You can change this by :ref:`snippet-width` option. You can detect snippet delimiter with regular expression by ``delimiter_regexp`` option. You can use ``\.\s*`` to use only text in the target sentence. Note that you need to escape ``\`` in string: You can see the detected delimiters (``.`` and following white spaces) aren't included in the result snippets. This is intentional behavior. You can specify keywords explicitly instead of extracting keywords from the current condition: You can specify one ore more tuples of keyword, open tag and close tag:: You can specify open tag and close tag for each keyword: You can specify options as the last argument with all syntaxes:: ``--query "fast performance"`` matches to only the first record's content. This ``snippet`` extracts two text parts that include the keywords ``fast`` or ``performance`` and surrounds the keywords with ``[`` and ``]``. ``max_n_results`` ``snippet`` ``snippet`` extracts keywords from conditions specified in ``--query`` and/or ``--filter`` automatically when you specify ``default_open_tag`` option and ``default_close_tag`` and don't specify keywords. It's similar to :doc:`snippet_html`. ``snippet`` requires at least one parameter that is the snippet target text:: ``width`` 