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
would I do it? Can I use specific analyzers for each field? Thanks, Felipe On Tue, Nov 8, 2011 at 5:06 AM, Paul Libbrecht wrote: > Felipe, > > in Lucene in Action there's a little bit on that. > Basically it's just about using the right analyzer. > > paul > > &g

Phonetic search with Lucene 3.2

2011-11-07 Thread Felipe Carvalho
Hello, I'm using Lucene 3.2 on a phone book app and phonetic search is a requirement. I've googled up "lucene phonetic search" but could not find many references. I did find this article, but I'm not sure about how updated it is: http://tech.javayogi.com/hello-world-lucene.html I couldn't find