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?

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?

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