Re: Lucene vs SQL.

2012-07-27 Thread Felipe Carvalho
Please forgive my lack of knowledge on this theme, but why cannot Lucene / Solr cannot be used as primary database / data store? On Fri, Jul 27, 2012 at 3:16 AM, Aditya wrote: > Check out these articles on this topic. Hope it helps. > http://www.findbestopensource.com/article-detail/lucene-solr-a

Re: Differences between BooleanQuery and QueryParser

2012-01-30 Thread Felipe Carvalho
Since the > QueryParser is doing extra work that you don't have to do considering > that you already know everything about the query, your second example > is faster. > > On Mon, Jan 30, 2012 at 1:55 PM, Felipe Carvalho > wrote: > > Is there any difference, from a p

Boost term according to phonetic representation

2012-01-30 Thread Felipe Carvalho
Consider a people index, containing People documents with the following names: Doc 1 [name: "Marcus"] Doc 2 [name: "Markus"] Doc 3 [name: "Mharcus"] Suppose I use an analyzer so that all 3 names have the same representation. Supposing I use the same analyzer when running a search for name=markus,

Re: Don't get results wheras Luke does...

2011-12-06 Thread Felipe Carvalho
I had a similar problem. The problem was the "-' char, which is a special char for Lucene. You can try indexing the data in lowercase and use WhitespaceAnalyzer for both indexing and searching over the field. One other option is replace "-" with "_" when indexing and searching. This way, your data

Re: Filtering search results

2011-11-22 Thread Felipe Carvalho
ing to use Solr instead. Thanks for any help anyone may give. On Mon, Nov 21, 2011 at 12:25 PM, Erick Erickson wrote: > http://wiki.apache.org/solr/FieldCollapsing > > On Mon, Nov 21, 2011 at 8:17 AM, Felipe Carvalho > wrote: > > Thanks for the tip, Erick! Any pointer to an

Re: Filtering search results

2011-11-21 Thread Felipe Carvalho
2011/11/21 liugangc : > >> hi,faceted search is like group by in SQL, and also need query two time > to get two list in your situation. I think there isn't better way to solve > your problem. > >> > >> -- > >> gang liu > >> email: liuga

Filtering search results

2011-11-20 Thread Felipe Carvalho
Hello, I'm working on a people finder app over an index built of Person documents. Among other attributes (name, gender, phone, ...) I have a hiringType attribute, which possible values are EMPLOYEE and CONSULTANT. When I run a "name" search over these documents, I need to render two lists: emp

Lucene pagination

2011-11-15 Thread Felipe Carvalho
I've found a couple of people asking around the same thing over the internet, just wanted to check with the experts if there's a better way to do this: how do I paginate Lucene search results? Is there a native way to do this or should I, upon each request, open the index, do the search and get the

Re: Phonetic search with Lucene 3.2

2011-11-09 Thread Felipe Carvalho
t only for > trunk/4.0. > > Maybe use Solr instead?! ;) > >Erik > > On Nov 9, 2011, at 02:29 , Felipe Carvalho wrote: > > > Using PerFieldAnalyzerWrapper seems to be working for what I need! > > > > On indexing: > > > >PerFi

Re: Phonetic search with Lucene 3.2

2011-11-09 Thread Felipe Carvalho
uble-metaphone. > Maybe that helps. > > paul > > > Le 9 nov. 2011 à 11:29, Felipe Carvalho a écrit : > > > Using PerFieldAnalyzerWrapper seems to be working for what I need! > > > > On indexing: > > > >PerFieldAnalyzerWrapper wrapper = new P

Re: Phonetic search with Lucene 3.2

2011-11-09 Thread Felipe Carvalho
IA examples. I'm looking at lucene-contrib stuff at http://lucene.apache.org/java/3_4_0/lucene-contrib/index.html but I can't seem to find other phonetic analyzers. Thanks! On Tue, Nov 8, 2011 at 12:19 PM, Erik Hatcher wrote: > > On Nov 8, 2011, at 05:42 , Felipe Carvalho wro

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Felipe Carvalho
On Tue, Nov 8, 2011 at 10:06 AM, Erik Hatcher wrote: > > On Nov 8, 2011, at 03:58 , Felipe Carvalho wrote: > > > One other question: I'm looking at Lucene 3.4 javadocs ( > > http://lucene.apache.org/java/3_4_0/api/core/index.html) but I can't > find > > Met

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Felipe Carvalho
Sorry, the last was a dumb question, just found org.apache.lucene:lucene-analyzers:3.3.0 on maven central repo Thanks a lot for the help! On Tue, Nov 8, 2011 at 10:16 AM, Felipe Carvalho wrote: > Thanks, Erik! > > I'm looking at lucene-all javadocs, and there are some inter

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Felipe Carvalho
po? or should I get those contrib classes out of some other dependency? Thanks! On Tue, Nov 8, 2011 at 10:06 AM, Erik Hatcher wrote: > > On Nov 8, 2011, at 03:58 , Felipe Carvalho wrote: > > > One other question: I'm looking at Lucene 3.4 javadocs ( > > http://lucene.apach

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Felipe Carvalho
#x27;m guessing things kinda changed since then. Thanks! On Tue, Nov 8, 2011 at 9:50 AM, Felipe Carvalho wrote: > Thanks for the reply, Paul! > > I got this example from Lucene In Action: > > public void testKoolKat(){ > RAMDirectory directory = new RAMDirectory

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Felipe Carvalho
quot;. For example, suppose I want to look for all documents which contents phonetically match "kool kat" and exactName match "kat" but not "cat", generating an expression like this: "exactName:kat AND contents:kool kat". Is it possible to do this? If so, how

Phonetic search with Lucene 3.2

2011-11-07 Thread Felipe Carvalho
.0 version only. Can anyone point to an example of phonetic indexing and searching? Should I use Phonetix ( http://www.companywebstore.de/tangentum/mirror/en/products/phonetix/index.html) stuff? Thanks a lot, Felipe

Re: using lucene to find neighbouring points in an n-dimensional space

2011-10-27 Thread Felipe Hummel
s you said. Just be assured that you really want to use Lucene for this. If you already have the term-vectors maybe you could just implement the closest neighbours calculation by yourself. Just compare your target document with every other in the dataset and rank by similarity. Felipe Hummel On S

Re: performance question - number of documents

2011-10-27 Thread Felipe Hummel
ould apply. See the first page of this article<http://www.cis.upenn.edu/~jstoy/cis650/papers/WAND.pdf>for more information. Felipe Hummel On Mon, Oct 24, 2011 at 8:29 AM, sol myr wrote: > Hi, > > Thanks for this reply. > > Could I please just ask - doesn't Lucene keep t

Re: Search one index but use IDF from another?

2011-03-13 Thread Felipe Hummel
rrect? On Thu, Mar 10, 2011 at 4:36 PM, Andrzej Bialecki wrote: > On 3/10/11 8:32 PM, Felipe Hummel wrote: > >> Hi, I'm building a system where I want to show only results indexed in the >> past few days. Furthermore, I don't want to maintain a giant index with >

Search one index but use IDF from another?

2011-03-10 Thread Felipe Hummel
ot cheap. Am I missing something? Thanks Felipe Hummel

Re: Some Problem with Lucene in Java

2011-02-03 Thread Felipe Lobo
ecified field, > and i just need the context of each keyword (i.e. some specified part of the > contents in the specified field). > > > Are there any ways to do so??? > > > Thx. > > > Cescy -- Felipe Lobo www.jusbrasil.com.br

Re: Parse multiple fields using Queryparser

2010-10-18 Thread Felipe Lobo
parser = new QueryParser(Version.LUCENE_29, "Field2",new > StandardAnalyzer(Version.LUCENE_29)); > > Should I create multiple parsers in this case or is there any other way > round? > -- Felipe Lobo www.jusbrasil.com.br

Re: Boost and ordering based on most recently updated

2010-08-05 Thread Felipe Lobo
t; at the top of the search results. This would happen after the Boost is > > applied. > > > > Anyone know how to do this? > > > > Thanks, > > -bp > > > > > > > > ----- > > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > > For additional commands, e-mail: java-user-h...@lucene.apache.org > > > > > -- Felipe Lobo www.jusbrasil.com.br

Re: Is there any difference in a document between one added field with a number of terms and a field added a number of times ?

2010-01-12 Thread Felipe
no longer > score rate artist 'The Beatles' better than 'The Beatles revival Band' > > So isn't there any way to recognise that repeated calls to addField() is > not creating a single field with many terms,but many fields with few terms. > > thanks Paul >

Problems with fragments size on highlight.

2009-11-14 Thread Felipe Lobo
t;..." } catch (Exception ex){ logger.error(ex.toString()); } i'm using brazilian analyser with lucene core 2.9.1 and highlighter and memory 2.9.0 . thanks. -- Felipe Lobo www.jusbrasil.com.br

Re: Maximum index file size

2009-10-23 Thread Felipe Lobo
m I/O to CPU/RAM. > > > ----- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > -- Felipe Lobo www.jusbrasil.com.br

Reducing memory use!

2009-10-07 Thread Felipe Lobo
do i do that? Thanks, -- Felipe Lobo www.jusbrasil.com.br

Duplicate documents

2009-10-04 Thread Felipe Lobo
as id 35[OK] and the other has 350[?]). I'm using ParallelMultiSearcher, because my app runs in a server where the index is distributed(big index), but this duplication happens when i'm running local on my machine without distributed index! thanks, -- Felipe Lobo www.jusbrasil.com.br

Re: lucene 2.4.1 : document in index but not returned in search

2009-10-02 Thread Felipe Lobo
ys. > Correct me if I'm wrong :) > -- > Anshum Gupta > Naukri Labs! > http://ai-cafe.blogspot.com > > The facts expressed here belong to everybody, the opinions to me. The > distinction is yours to draw > > > On Fri, Oct 2, 2009 at 11:05 PM, Felipe Lobo wr

Re: lucene 2.4.1 : document in index but not returned in search

2009-10-02 Thread Felipe Lobo
keyQuery.add(bQuery, > BooleanClause.Occur.SHOULD); >} >} > > > CachingWrapperFilter cf; > Searcher searcher; > HitCollector collector; > . some assignments... > searcher.search(keyQuery, cf, collector); > > > Thanks & Regards, > Priya > PT-7A-012 > Residency Road > Bangalore > India > Mob: 99011 22033 > > > - > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > -- Felipe Lobo www.jusbrasil.com.br

Re: Implement SpanScorer on 2.9 lucene lib!

2009-10-01 Thread Felipe Lobo
n Thu, Oct 1, 2009 at 10:44 AM, Mark Miller wrote: > Felipe Lobo wrote: > > Hi, thanks for the answer but it didn't work. > > I stopped rewriting the query and used the queryscorer but it don't > > highlight. > > The part of the query i'm doing wildcard is

Re: Implement SpanScorer on 2.9 lucene lib!

2009-10-01 Thread Felipe Lobo
ot;Habeas Corpus HC 100930027253 ES 100930027253" And of what lib is TermQueryScorer? I check out on lucene javadoc and didn't see. Thanks! On Wed, Sep 30, 2009 at 6:38 PM, Mark Miller wrote: > Felipe Lobo wrote: > > Hi, i updated my lucene lib to 2.9.0 and i'm tryi

Implement SpanScorer on 2.9 lucene lib!

2009-09-30 Thread Felipe Lobo
es is the best way of implementing spanscorer?? I was using queryscorer but after update to the new lib the highlither stopped hightlithing my wildcard queries, and i'm rewriting. Thanks, -- Felipe Lobo www.jusbrasil.com.br

In which position of a document a word was found?

2007-06-13 Thread Felipe Sánchez Martínez
_OFFSETS)); doc.add(new Field("filename", f.getCanonicalPath(), Field.Store.YES, Field.Index.NO_NORMS)); writer.addDocument(doc); . ---- Thanks in advance -- Felipe. - To unsubscribe, e-mail: [EMA