# How to configure neural search for two fields

**URL:** <https://forum.opensearch.org/t/how-to-configure-neural-search-for-two-fields/23407>\
**Category:** OpenSearch\
**Tags:** configure\
**Created:** [February 13, 2025, 11:04pm UTC](https://forum.opensearch.org/t/how-to-configure-neural-search-for-two-fields/23407 "2025-02-13T23:04:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HighTechLowLife](https://avatars.discourse-cdn.com/v4/letter/h/ee59a6/32.png) [@HighTechLowLife](https://forum.opensearch.org/u/HighTechLowLife)\
**Post date:** [February 13, 2025, 11:04pm UTC](https://forum.opensearch.org/t/how-to-configure-neural-search-for-two-fields/23407/1 "2025-02-13T23:04:18Z")

</div>

I have a simple database of articles (title + body):

```auto
"mappings": {
    "properties": {
        "title": {
            "type": "text",
            "analyzer": "..."
        },
        "body": {
            "type": "text",
            "analyzer": "..."
        },
    }
}

```

When searching I use a multi\_match query to boost the title field:

```auto
"query": {
    "multi_match": {
        "query": "...",
        "fields": ["title^1.2", "body"],
    }
}

```

I would like to add semantic search here (hybrid).  
What is the best way to implement this behavior using neural search? I’ve read the [tutorial](https://opensearch.org/docs/latest/search-plugins/neural-search-tutorial/), but still can’t get what to do with the second field. If I calculate two vectors (title\_embedding, body\_embedding) how can I combine them in a neural query?

One more question: without boosting. Is there any way to concatenate two fields for ingest pipeline to avoid making another one in the mappings section? Something like this:

```auto
"mappings": {
    "properties": {
        "title": {},
        "body": {},
       "title_body_embedding": {} // vector of title + ' ' + body
    }
}

```

PS: sorry, my English is not good
