> For the complete documentation index, see [llms.txt](https://manual.dxable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.dxable.com/optimizely/configured-commerce/optimizely-configured-commerce/search/elasticsearch-v7-dimensional-analyzer-and-fractional-number-search.md).

# Fractional Number Search

Elasticsearch バージョン 7 では、Dimensional Analyzer を使用して、サイズと測定単位を含む検索用語を使用して製品サイズで製品を検索できます。 Dimensional Analyzer は、小数点サイズを含む検索用語を使用した製品サイズの検索もサポートしています。

### Dimensional Analyzerを構成する <a href="#gjdgxs" id="gjdgxs"></a>

1. 製品サイズ情報を使用して、製品属性またはカスタム製品プロパティを識別します。
2. **Admin Console** > **Marketing** > **Search** > **Field Boosting**に移動します。
3. 製品サイズ属性またはカスタム プロパティを選択して編集します。
4. **\[Queryable]**&#x3092;**\[Yes]**&#x306B;切り替えます。
5. Data Typeとし&#x3066;**\[Text]**&#x3092;選択します。
6. **\[Index Analyzer]**&#x3068;**\[Query Analyzer]**&#x3068;し&#x3066;**\[IscDimensionalAnalyzer]**&#x3092;選択します。
7. デフォルトのブースト値 1 を維持するか、ブースト値を増やして、サイズで検索するときに検索結果の関連性を高めます。
8. **\[Save]**&#x3092;クリックします。

![ConfigureDimensionalAnalyzer.png](/files/UUkXR64KKa9SU0Qldazd)

### 製品サイズデータと検索用語 <a href="#id-30j0zll" id="id-30j0zll"></a>

製品サイズ フィールドまたは属性に、インデックス作成およびクエリが可能なサイズと測定単位のデータを入力します。 製品サイズと製品サイズに一致する検索用語の例を以下の表に示します。 あなたまたはあなたのパートナーは、Configured Commerce コード内のInsite.Search.ElasticsearchV7.TokenFilters名前空間のIscDimensionalTokenFilterおよびIscFractionalTokenFilter という名前で、検索用語で使用できる、サポートされている標準の分数と測定単位、およびそれらにマップされた同等の同義語の完全なリストを見つけることができます。

| **Product Size** | **Search Terms**                               |
| ---------------- | ---------------------------------------------- |
| 1/2 in           | 1/2 in, 0.5in, 0.5", .5", 1/2 inch, 1/2 inches |
| 1 1/2 ft         | 1-1/2 ft, 1 1/2ft, 1.5ft, 1.5', 1-1/2 feet     |
| 1/4 oz           | 1/4 oz, 1/4 ounce, 0.25 oz, .25ounces          |
| 2.25 gallon      | 2-1/4 gal, 2.25gallons                         |
| 1/32 quart       | 1/32 qt, 0.0313 quarts, 0.031qt, 0.03qt        |
| 27/32 cm         | 27/32cm, 0.8438 cm, 0.844cm, 0.84 centimeter   |

### 検索インデックスを再構築する <a href="#id-1fob9te" id="id-1fob9te"></a>

商品サイズ情報を更新したら、**Admin Console** > **Marketing** > **Search** > **Indexing**に移動します。 **\[Rebuild All]**&#x3092;クリックし、検索インデックスの作成が完了するまで待ちます。

### 例 <a href="#id-3znysh7" id="id-3znysh7"></a>

#### **例1** <a href="#id-2et92p0" id="id-2et92p0"></a>

以下は製品の例です。 **Dart Cafe G Design Cup**は、製品属性容量**0.75 oz**のサイズ情報を持&#x3064;**\[Cups]**&#x306E;製品カテゴリに属します。 この製品は、0.75oz、.75oz、0.75ounce、0.75 ounces、3/4 ounce、3/4oz などの検索用語を使用して見つけることができます。

![Elasticsearch 1.png](/files/z57ExnEdj2TyMdCdJ6Gf)

#### **例2** <a href="#tyjcwt" id="tyjcwt"></a>

以下は製品の例です。 **\[Lion Insta-Cover Ring Easel Binder]**&#x306F;、**\[Binders]**&#x306E;製品カテゴリに属し、製品属性バインダー容量のサイズ情報は**2.50"**&#x3067;す。 この製品は、2.5in, 2.50inches, 2-1/2inches, 2 1/2 inches, 2.5 inch, 2.5"などの検索用語を使用して見つけることができます。

![Elasticsearch 2.png](/files/rngGbaKT2LDBFhJR8Aix)

{% hint style="info" %}
注記\
すべての製品属性も検索インデックスに一緒に保存され、デフォルトのアナライザーを使用す&#x308B;**\[Filters]**&#x30D5;ィールドを使用してクエリされます。 製品属性の場合、検索クエリでは、属性に対してディメンション アナライザーを使用するだけでなく、フィルター フィールドに対して既定のアナライザーも使用します。 これにより、より多くのテキストが一致する可能性があります。 あるいは、より正確なサイズ一致を得るために、カスタム製品プロパティに製品サイズ情報を保存し、それにディメンション アナライザーを適用することもできます。
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://manual.dxable.com/optimizely/configured-commerce/optimizely-configured-commerce/search/elasticsearch-v7-dimensional-analyzer-and-fractional-number-search.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
