Re: times of match in a document

2007-05-27 Thread Daniel Noll
On Monday 28 May 2007 12:30:38 Anny Bridge wrote: > Hi, > > I use lucene in my project and it works well. > > Now I hope that the search result presenting to the user include the times > of the keyword match in a document. > > Is there someone do this before,Or is there any code example for this...

Re: times of match in a document

2007-05-27 Thread James liu
sorry,,i not see it clearly match in a document. 2007/5/28, James liu <[EMAIL PROTECTED]>: maybe solr facet fit for u .http://wiki.apache.org/solr/SolrFacetingOverview 2007/5/28, Anny Bridge <[EMAIL PROTECTED]>: > > Hi, > > I use lucene in my project and it works well. > > Now I hope that

Re: times of match in a document

2007-05-27 Thread James liu
maybe solr facet fit for u.http://wiki.apache.org/solr/SolrFacetingOverview 2007/5/28, Anny Bridge <[EMAIL PROTECTED]>: Hi, I use lucene in my project and it works well. Now I hope that the search result presenting to the user include the times of the keyword match in a document. Is there so

Re: synchronize hits variable?

2007-05-27 Thread Otis Gospodnetic
Hi John, 20M sounds suspicious. Without seeing the code, it's hard to tell. My guess is the problem lies elsewhere or some piece of Lucene is being incorrectly used. Or maybe your Lucene Documents are just very large. Are they? You could go modify Hits source and change the number of hits

Re: Search Query AND OR for Title and Description Fields

2007-05-27 Thread Erick Erickson
Then I think what you want is something like just assembling a BooleanQuery like: (+title:object +title:oriented +title:programming) (+description:object +description:oriented +description:programming). Best Erick On 5/27/07, Ram Peters <[EMAIL PROTECTED]> wrote: What I like to do is search ov

times of match in a document

2007-05-27 Thread Anny Bridge
Hi, I use lucene in my project and it works well. Now I hope that the search result presenting to the user include the times of the keyword match in a document. Is there someone do this before,Or is there any code example for this... Thanks in Advance. Anny

synchronize hits variable?

2007-05-27 Thread John Powers
In a j2ee webapp we have a search object that stores a user's search preferences (items/page, detail level, etc). it has a search() that calls a static method getSearcher() that returns a static IndexSearcher that all these user search objects use.searching with that gives us a Hits object tha

Re: Search Query AND OR for Title and Description Fields

2007-05-27 Thread Ram Peters
What I like to do is search over multiple fields. Multiple fields: title and description. I don't want to concatenate the title and description field into one and search on that field, because title and description have different boosting. When I search over multiple fields for "object oriented

Θέμα: Re: problem with the label

2007-05-27 Thread STEFANOS STEFANOS
Yes i am checking the query .toSring().The problem is that with query such as contents:Sense:03404903 (is the number of the sense and that what i want to find is the "Sense:03404903")is that lucene returns many results that don't contain Sense:03404903". I tried also to delete the su

Re: problem with the label

2007-05-27 Thread Erick Erickson
First, if you haven't already, get a copy of Luke and use it to examine your index and see how your query parsed. The colon's ":" are part of the Lucene query syntax, so I have no idea what now contents:Sense:sense parses. Second, what analyzers were you using both at index and query time? Standa

RE: Number of documents in an index with filter

2007-05-27 Thread Ard Schrijvers
> > > Greetings, > > I would like to add the number of possible hits in my > queries, for example, > "found 18 hits out of a possible 245,000 documents". I am > assuming that > IndexReader.numDocs() is the best way to get this value. > > However, I would like to use a filter as part of the

Number of documents in an index with filter

2007-05-27 Thread Joe MarkAnthony
Greetings, I would like to add the number of possible hits in my queries, for example, "found 18 hits out of a possible 245,000 documents". I am assuming that IndexReader.numDocs() is the best way to get this value. However, I would like to use a filter as part of the query. What is the most e