Am building a \"Book search\" API using Lucene. I need to index Book Name,Author, and Book category fields in Lucene index.
A single book can fall under multiple dis
You can create a simple "category" field, where you list all categrories for a book seperated by spaces.
Then you can search something like:
stock market AND category:(+"business")
Or if you want to search in more than one category
stock market AND category:(+"business" +"philosophy")