Re: Pagination with MultiSearcher

2009-03-15 Thread Erick Erickson
Basically, the FileSortedHitQueue is just a sorting mechanism you implement yourself. But I can't help but think that there's an easier way, although I'll have to admit I haven't used MultiSearcher enough to offer much guidance. That'll teach me to send something off on Sunday that I don't real

Re: StandardTokenizer issue ?

2009-03-15 Thread Paul Cowan
iMe wrote: This analyzer uses the StandardTokenizer which javadoc states: Splits words at hyphens, unless there's a number in the token, in which case the whole token is interpreted as a product number and is not split. But looking to my index with luke, I saw that my product reference AB-CD-

Re: underscore a word separator in StandardAnalyzer?

2009-03-15 Thread Paul Libbrecht
Sure, all this is possible, I would know how to make my analyzer. I just faced this on an existing solution which takes StandardAnalyzer for almost everything because it's generic. Therefore I wanted to know if there was a rationale. Of cours URIs have trivial analyzers. paul Le 16-mars-09

Re: underscore a word separator in StandardAnalyzer?

2009-03-15 Thread Daniel Noll
Paul Libbrecht wrote: Hello fellows of Lucene, I just discovered that the _ character is a word separator in the StandardAnalyzer. Can it be? It broke our usage of a field that stores a comma-separated list of "uri-fragments" If I were analysing a URI, I would not be using StandardAnalyser

Re: What kind of performance to expect from a MultiTermQuery being used in BooleanQuery?

2009-03-15 Thread Michael McCandless
ArtemGr wrote: I wonder: does Lucene need to scan all the terms in the inverted index and the collect all the document identifiers into the DocIdSet in order to implement the MultiTermQuery which goes after some other queries in a BooleanQuery? Like, collecting a thouthand of document identif

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: Pagination with MultiSearcher

2009-03-15 Thread Amin Mohammed-Coleman
HI Erick Thanks for your reply, glad to see I'm not the only person working/developing on a Sunday! I'm not sure how the FieldSortedHitQueue works and how it can be applied to the search method exposed by MultiSearcher. Would it be possible to clarify abit more or even point to some reference doc

Re: Pagination with MultiSearcher

2009-03-15 Thread Erick Erickson
You could do something with FieldSortedHitQueue as a post-search sort, but I wonder if this would work for you... public TopFieldDocs *search*(Query

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