如何创建和使用带有Spring Data ElasticSearch的摄取管道

oipij1gg  于 2022-11-21  发布在  Spring
关注(0)|答案(1)|浏览(177)

我需要在ElasticSearch中上传PDF文件,以搜索PDF文件中的内容。我通过postman使用摄取管道 curl API,它工作正常,但我无法在我的Spring Boot 项目中集成和使用索引和搜索PDF文件。谁能建议我如何在Spring Data ElasticSearch中创建和使用摄取管道。
对于索引和文档索引,我们只在实体类上标注,但是对于摄取管道,我们如何使用它。

@Document(indexName = "blog", type = "article")
public class Article {

    @Id
    private String id;
    
    private String title;
    
    @Field(type = FieldType.Nested, includeInParent = true)
    private List<Author> authors;
    
    // standard getters and setters
}

我需要在Spring Boot 透视图中明确如何配置摄取管道,以及如何在实体类中使用它来保存要搜索的文件数据。

nhaq1z21

nhaq1z211#

Spring Data Elasticsearch中不支持此功能。
请注意, Boot 和SpringDataElasticsearch是不同的东西。

相关问题