1
votes

You know lucene firstly query the term in tii then point to tis,my question is that how the lucene filter fields. for example:The tis file has 1 million terms,999 thousands terms belongs to content field,the other 1 thousand belongs to title field. So If I query title:city, then Lucene will search the term city undistinguish fields?i.e firstly both searh the two fields terms (content and title )and then drop the content field.Or there are two tis files one for content field other for title field. Thanks in advance

1

1 Answers

0
votes

A field value alone makes no sense to Lucene. Terms consist of a value ("city") and a field name ("title", "content", ...).

If you search for "title:city", Lucene will only search for the "city" value for field name "title".