I am trying to create a Lucene search using school name and player name to return videos. I am trying to decide between two methods.
Method A is to index the school name and player name on the video document and use a boolean query to search on these fields.
Method B is to create separate document types and make 3 unique queries.
Documents:
- school document - stores a school_id and indexes the school name
- player document - stores a school_id and sport_id, and indexes the player name
The 3 queries:
- Search for all school documents with school name
- Search for all player documents with player name
- Search the videos for all content with school_id and sport_id from the first two queries.
What are the pros/cons of both methods?