It would be much slower and scoring does not work as expected. Full text search engines flatten the data and are fast because of that. Every additional field structure should also be flattened. To improve search you also index various stuff redundant, so you use copy fields to achieve that.
Uwe Am 22. Dezember 2016 17:57:38 MEZ schrieb "Nicolás Lichtmaier" <nicol...@wolfram.com>: >Why not turning every term int the search into a BooleanQuery listing >all the diferent fields to be searched? Is there a problem with that? > >Nicolás.- > > >El 21/12/16 a las 13:38, Uwe Schindler escribió: >> Hi, >> >> This is the standard approach, there is no better way. This also >keeps "scoring" working as expected, as the whole contents are seen as >"one entity" during scoring. >> >> Uwe >> >> ----- >> Uwe Schindler >> Achterdiek 19, D-28357 Bremen >> http://www.thetaphi.de >> eMail: u...@thetaphi.de >> >>> -----Original Message----- >>> From: suriya prakash [mailto:suriy...@gmail.com] >>> Sent: Wednesday, December 21, 2016 1:31 PM >>> To: java-user@lucene.apache.org >>> Subject: All Fields Search >>> >>> Hi, >>> >>> I have 500 fields in a document to index. >>> >>> I append all the values and index it as separate field to support >all >>> fields search. I will also have 500 separate fields for field level >search. >>> >>> >>> Is there any other better way for all fields search? >>> >>> >>> Regards, >>> Suriya >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org >> For additional commands, e-mail: java-user-h...@lucene.apache.org >> > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org >For additional commands, e-mail: java-user-h...@lucene.apache.org -- Uwe Schindler Achterdiek 19, 28357 Bremen https://www.thetaphi.de