Searching both phrase and it's words

2012-06-30 Thread sxam
Hi, Suppose we have a query "balcony table". I want results to be returned by exact match (first priority) and by single words matching as well (for "balcony" or for "table"). So currently my solution is: Analyzer analyzer = new SnowballAnalyzer("English", StopAnalyzer.ENGLISH_STOP_WORDS_SET);

Restrict Lucene search in concrete document ids

2012-10-16 Thread sxam
Hi, Prior to search I have a concrete list of Lucene Document Ids (different every time) and I want to limit my search only to those specific documents. Is there a way to do it? I don't need to check any fields or anything, I know the possible document ids before so if possible I wouldn't want to u

Re: Restrict Lucene search in concrete document ids

2012-10-17 Thread sxam
Hi, Well, those are Lucene Document Ids I am talking about. And I know it could be done using a Filter with a Query, but I thought that if I can tell Lucene to somehow look in a specified set of Documents, it would speed up the search substantially. Otherwise it's just the same as adding 5000 Claus

Re: Restrict Lucene search in concrete document ids

2012-10-22 Thread sxam
Hi, I try to set the filter but I encounter the following problem - while overriding Bits method, how do I know the document id from the indexReader I get in the method? I can see the documents by indexReader.Documents, but no id there.. -- View this message in context: http://lucene.472066.n3.

Re: Restrict Lucene search in concrete document ids

2012-10-22 Thread sxam
I work with Lucene.Net. , version 2.9 The code is : Searching: Filter filter = new PictureIdFilter( allowedResources ); TopDocs docs = searcher.Search( boolQuery, filter, documentCount ); ScoreDoc[] hits = docs.scoreDocs; And the filter is : class PictureIdFilter : Filter +{ +ILog lo

Re: Restrict Lucene search in concrete document ids

2012-10-22 Thread sxam
Because that was still way too slow and I am looking whether I can use this information that I got (document Ids) to speed things up... -- View this message in context: http://lucene.472066.n3.nabble.com/Restrict-Lucene-search-in-concrete-document-ids-tp4013905p4015138.html Sent from the Lucene