Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Lucene Ranking  RSS feed

Greg Donahue
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry in advance if this is the wrong forum for a Lucene question...
I'm preparing an online search tool using Lucene; the target data is citations from scientific literature. Each Document has a few fields, such as "Article Title," "Abstract," "Journal Name," "Volume," and so on. Right now, my system is set up so that Lucene only searches the "Abstract" fields. I need to get it to search other fields as well. I'm constructing the Query using a QueryParser and using "Abstract" as the default field. Is there any way to use "All" for the default field?
One solution (during indexing) is to dump all the fields into one aggregate field called "All" and re-index the entire data set. Unfortunately, my data set is huge. I don't want to have to re-index it. Another solution (during searching) is to search on each desired field, then interleave the results somehow. Unfortunately, I don't know how to do such interleaving.
Any thoughts?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!