Re: how to index keyword and value

2009-03-15 Thread Amin Mohammed-Coleman
When you create a query to the searcher you can specify which field to search on for example: Query query = queryParser.parse(searchTerm); QueryParser is constructed like this: QueryParser queryParser = new AnalyzingQueryParser

Re: how to index keyword and value

2009-03-15 Thread Seid Mohammed
dear Erick, that one I have tried the very begining on playing lucene. I know how to create documents, but my question is I want to create documents with fields such as person-name and phone-number and so on. while searching, i will submit a person name so that it will return me the phone number o

Re: how to index keyword and value

2009-03-15 Thread Erick Erickson
Have you tried working through the getting started guide at http://lucene.apache.org/java/2_4_1/gettingstarted.html? That should give you a good idea of how to create a document in Lucene. Best Erick On Sun, Mar 15, 2009 at 8:49 AM, Seid Mohammed wrote: > that is exactly my question > how can

Re: how to index keyword and value

2009-03-15 Thread Seid Mohammed
that is exactly my question how can I do that? thanks a lot Seid M On 3/15/09, Amin Mohammed-Coleman wrote: > Why don't you create a Lucene document that represents a Person and then > index the fields name, age, phone number, etc. Search on the name and then > get the corresponding phone numbe

Re: how to index keyword and value

2009-03-15 Thread Amin Mohammed-Coleman
Why don't you create a Lucene document that represents a Person and then index the fields name, age, phone number, etc. Search on the name and then get the corresponding phone number from the search. Cheers Amin On Sun, Mar 15, 2009 at 10:56 AM, Seid Mohammed wrote: > I want to Index Person_Nam

how to index keyword and value

2009-03-15 Thread Seid Mohammed
I want to Index Person_Name and associated phone number. Example: Abebe ===>+2519112332 later, When I search for Abebe, it should display +2519112332 any hint seid M -- "RABI ZIDNI ILMA" - To unsubscribe, e-mail: java-user-unsu