如何在Zend Lucene中将一组值存储到一个索引文档中?

时间:2021-07-05 12:18:12

I've got a database with a list of registrations. Each of the registrations has 0..* tickets codes. How can I store it into an index document to be able to find a registration by one of the codes?

我有一个包含注册列表的数据库。每个注册都有0 .. *票证代码。如何将其存储到索引文档中以便能够通过其中一个代码找到注册?

如何在Zend Lucene中将一组值存储到一个索引文档中?

1 个解决方案

#1


I found the solution, I put all tickets into one column tickets and I store ticket codes there and each of them divided by space. I made that column with type Text (Understanding Field Types). So, it allows me to search by the tickets and registration information.

我找到了解决方案,我把所有门票都放到了一个门票中,我在那里存储了门票代码,每个门票都按空格划分。我用类型Text(了解字段类型)创建了该列。因此,它允许我搜索门票和注册信息。

#1


I found the solution, I put all tickets into one column tickets and I store ticket codes there and each of them divided by space. I made that column with type Text (Understanding Field Types). So, it allows me to search by the tickets and registration information.

我找到了解决方案,我把所有门票都放到了一个门票中,我在那里存储了门票代码,每个门票都按空格划分。我用类型Text(了解字段类型)创建了该列。因此,它允许我搜索门票和注册信息。