How can I store an array of values into one index document in Zend Lucene?

339 Views Asked by At

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?

enter image description here

1

There are 1 best solutions below

0
Ivan Lukasevych On BEST ANSWER

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.