Create index with multi field mapping syntax with NEST 2.x

前端 未结 4 1274
野趣味
野趣味 2021-02-09 21:54

I just can\'t seem to get the syntax correct for multi field mapping in NEST 2.0--if that\'s the correct terminology. Every example I\'ve found for mapping seems to be <= the

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-09 22:19

    I think you have at least 2 possibilities to solve your problem:

    1. On indexing: Create something like a metadata model, which is stored just for retrieving. See the _source field to limit the return to this field.
    2. On searching: Specify the fields you want to query: if you don`t want to query the CreatedDate, just don't include it in your search.

    In my case I am using both of these approaches to get very fast results :-)

提交回复
热议问题