Re: About counting term hits

2008-11-13 Thread lbarcala
> yes its quite possible. > 1.you need to create term which you need to search. > eg. > Term term = new Term("yourfield","yourword"); > > 2. then create a TermDoc enum. > TermDocs provides an interface for enumerating pairs > for a term. > > TermDocs t = new > FilterIndexReader(IndexReader.open("y

Re: Using AND with MultiFieldQueryParser

2008-11-13 Thread prabin meitei
Hi, >From whatever you have written you are trying to write a query *word1 AND stopword AND word2 *this means that the result should contain all of word1, word2 and the stopword. Since you have already removed the stopword during index time you will never find any document matching your query. (th

Re: Lucene implementation/performance question

2008-11-13 Thread Eran Sevi
Hi, I have the same need - to obtain "attributes" for terms stored in some field. I also need all the results and can't take just the first few docs. I'm using an older version of lucene and the method i'm using right now is this: 1. Store the words as usual in some field. 2. Store the attributeso

Re: 1:n queries again

2008-11-13 Thread Christian Reuschling
Hello Eric, our use case is to match feature vectors extracted from pictures in a performant way with Lucene. For this, interesting points of a picture will be derived, and each of them is described by an own vector. So we have one picture, but several feature vectors (1:n) When I now want to se

Re: About counting term hits

2008-11-13 Thread Otis Gospodnetic
Mario, Does this help: http://hudson.zones.apache.org/hudson/job/Lucene-trunk/javadoc//org/apache/lucene/index/TermFreqVector.html Plus: http://hudson.zones.apache.org/hudson/job/Lucene-trunk/javadoc//org/apache/lucene/index/IndexReader.html#method_summary (look for "getTerm.Freq...") Otis -- Se

constructing a mini-index with just the number of hits for a term

2008-11-13 Thread Sven
First - I apologize for the double post on my earlier email. The first time I sent it I received an error message from [EMAIL PROTECTED] saying that I should instead send email to [EMAIL PROTECTED] so I thought it did not go through. My question is this - is there a way to use the Lucene/Solr

Re: About counting term hits

2008-11-13 Thread lbarcala
> Mario, > > Does this help: > http://hudson.zones.apache.org/hudson/job/Lucene-trunk/javadoc//org/apache/lucene/index/TermFreqVector.html > > Plus: > http://hudson.zones.apache.org/hudson/job/Lucene-trunk/javadoc//org/apache/lucene/index/IndexReader.html#method_summary > (look for "getTerm.Freq...

Re: Using AND with MultiFieldQueryParser

2008-11-13 Thread Rafael Cunha de Almeida
On Thu, 13 Nov 2008 14:53:59 +0530 "prabin meitei" <[EMAIL PROTECTED]> wrote: > Hi, > From whatever you have written you are trying to write a query > *word1 AND stopword AND word2 > *this means that the result should contain all of word1, word2 and the > stopword. > > Since you have already remo

Re: Using AND with MultiFieldQueryParser

2008-11-13 Thread Matthew Hall
Which Analyzer have you assigned per field? The PerFieldAnalyzerWrapper uses a default analyzer (the one you passed during its construction), and then you assign specific analyzers to each field that you want to have special treatment. For example: PerFieldAnalyzerWrapper aWrapper = n

Re: About counting term hits

2008-11-13 Thread Otis Gospodnetic
The more Documents you have to look at the slower it will be, but it may still be fast enough - it's impossible to tell without considering index size, query volume, hardware, number of hits/Docs, etc. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ___

[ANN] Luke 0.9 released

2008-11-13 Thread Andrzej Bialecki
Hi all, I'm happy to announce that the new release of Luke - the Lucene Index Toolbox - is available for download (or WebStart use) here: http://www.getopt.org/luke Changes in v. 0.9: -- This release adds many functionality enhancements and advanced features available

Scoped Search and Facets generation using Lucene

2008-11-13 Thread Bapat, Mayur
Hi, Does Lucene support Scoped Searches? My intention is to index an XML String and search for a matching element/attribute value from that XML by specifying scope(path). Also is there any direct support for Facets building in Lucene? Regards, Mayur -

Storing part of the field

2008-11-13 Thread Ravi L
Hi, I am simple question. I want a string to be indexed, but stored part of that string. For example, if my string is "foo bar", I want to index whole string("foo bar") but store the first 3 characters("foo") of it. How can I do this with the lucene APIs? thanks ravi ---