Re: Lucene index customization

2013-08-24 Thread Airway Wong
Thanks, Erick and Robert. The reason to use Lucene is we like the robustness and community support for Lucene. We have other components using advanced Lucene features, too. For one of the component, all we need is an inverted list with a few customized field types. If Lucene can solve it, we pref

Re: Lucene index customization

2013-08-24 Thread Robert Muir
FieldType myType = new FieldType(TextField.TYPE_NOT_STORED); myType.setIndexOptions(IndexOptions.DOCS_ONLY); document.add(new Field("title", "some title", myType)); document.add(new Field("body", "some contents", myType)); ... On Sat, Aug 24, 2013 at 3:27 AM, Airway Wong wrote: > Hi, > > To custo

Re: Lucene index customization

2013-08-24 Thread Erick Erickson
Have you looked at the whole flexible indexing functionality? Here's a couple of places to start: http://www.opensourceconnections.com/2013/06/05/build-your-own-lucene-codec/ http://www.slideshare.net/LucidImagination/flexible-indexing-in-lucene-40 I'm still not quite sure why you want to do this,

Re: Lucene index customization

2013-08-24 Thread Airway Wong
Thanks for the suggestion. We plan to build inverted list for a production system, so there is high demand for reliability and performance. Lucene is a highly sophisticated IR lib and has a lot of features. Usually it is much easier to trim down features and Lucene already starts to support custo

Re: Lucene index customization

2013-08-24 Thread Ivan Krišto
On 08/24/2013 09:27 AM, Airway Wong wrote: > To customize the inverted list for different format, it seems we have to > overload many different classes and functions. We are only interested in > simple inverted index without position/posting information. > > Is it possible to customize an inverted

Lucene index customization

2013-08-24 Thread Airway Wong
Hi, To customize the inverted list for different format, it seems we have to overload many different classes and functions. We are only interested in simple inverted index without position/posting information. Is it possible to customize an inverted list format that only support simple inverted i