Re: Question about QueryParser

2008-10-23 Thread James liu
thks steve, i get it. 2008/10/24 Steven A Rowe <[EMAIL PROTECTED]> > Hi James, > > On 10/23/2008 at 8:30 AM, James liu wrote: > > public class AnalyzerTest { > >@Test > >public void test() throws ParseException { > >QueryParser parser =

Question about QueryParser

2008-10-23 Thread James liu
public class AnalyzerTest { @Test public void test() throws ParseException { QueryParser parser = new MultiFieldQueryParser(new String[]{"title", "body"}, new StandardAnalyzer()); Query query1 = parser.parse("中文"); Query query2 = parser.parse("中 文"); System.out.pri

Re: IndexWriter.Optimize() is too slow and IOException! How Can I do?

2007-06-06 Thread James liu
U should split your index. large index will cause query speed, optimize speed when u index. 2007/6/7, 童小军 <[EMAIL PROTECTED]>: my indexfile to 8G when I optionze() the index.program is too slow . and some time IOException. And use TOO memory . xiaojun tong 010-64489518-613 [EMAIL PROTEC

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 w

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: Command line search tool using Lucene (targeted for Site Search)

2007-05-20 Thread James liu
it seems not quick. http://demo1.minalyzer.com/minalyzerlite/search4.php?q=test&offset=0 Results 1 - 15 of 16 for test.(1.586 seconds) 2007/5/20, Saurabh Dani <[EMAIL PROTECTED]>: Greetings All, We would like to introduce our java lucene based command line search tool, Minalyzer Lite.

Re: DBSight Turns Free! Instant Lucene Search on Database!

2007-04-24 Thread James liu
Does it mean DBSight is Free? 2007/4/24, Chris Lu <[EMAIL PROTECTED]>: For those who may be interested, DBSight 1.4.0 now has unlimited index size with Free version! Basically DBSight is more like SOLR + database adapter. You just point it with one or several SQLs to any database, and you can

Re: How to use StandardAnalyzer

2007-03-16 Thread James liu
You can read demo source code from lucene source package. 2007/3/16, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: Hi, I am new to Lucene Java API. I want to use StandardAnalyzer for tokenizing my document. How can I use it? Further how can I index "Acronym" and "Company name" as one term.

Re: which way to index pdf,word,excel

2006-09-05 Thread James liu
thk,,,Cohen and lin. 2006/9/6, Doron Cohen <[EMAIL PROTECTED]>: I think that Nutch would crawl and search all these 3 types. Not sure that Nutch would provide the framework you seem to look for, but perhaps it is worth to take a look - http://lucene.apache.org/nutch/ "James l

Re: which way to index pdf,word,excel

2006-09-05 Thread James liu
u must have knowledge how to extract information from them and what kind of keys they need to be set. Then you can do what you want to. On 9/5/06, James liu <[EMAIL PROTECTED]> wrote: > > i wanna find frame which can index xml,word,excel,pdf,,,not one. > > > 2006/9/6, Do

Re: which way to index pdf,word,excel

2006-09-05 Thread James liu
files? "James liu" <[EMAIL PROTECTED]> wrote on 05/09/2006 19:14:24: > i find lius many question so i wanna give up and find new. > > who recommend ? - To unsubscribe, e-mail: [EMAIL PROTECTED]

which way to index pdf,word,excel

2006-09-05 Thread James liu
i find lius many question so i wanna give up and find new. who recommend ?

Anyone know which way lucene read index file

2006-09-04 Thread James liu
After reading 'lucene in action', i know the format of indexfile. which way lucene read index file? line by line? I m very interesting.

how to write this regexps?

2006-08-29 Thread James liu
i wanna index html,,,but it have image,flash,javascript, and i wanna make index quick,, but i don't know how to get textmode content,,, anyone can help me?

Re: Can lucene query this result?

2006-07-19 Thread James liu
You misunderstand. This sql just tell what i wanna do. i have five user_group and i wanna group result which lucene do. 2006/7/20, Otis Gospodnetic <[EMAIL PROTECTED]>: No. Lucene is not a relational database and doesn't speak SQL. Otis - Original Message From: James

Can lucene query this result?

2006-07-19 Thread James liu
for example: $sql = "select count(*), user_group from groups where uid>0 group by user_group; can lucene query this result?

how to use BNF

2006-07-16 Thread James liu
i wanna use "+","-","and","or","not" "*"

Re: is it wrong with my code?

2006-07-15 Thread James liu
who know? 2006/7/15, James liu <[EMAIL PROTECTED]>: yes,it can do...but now work for chinese search. english search is ok. and how can i fix it? 2006/7/15, Doron Cohen <[EMAIL PROTECTED]>: > > Hits hits = searcher.search(qp.Query(queryStr)); > > I think it should

Re: is it wrong with my code?

2006-07-14 Thread James liu
yes,it can do...but now work for chinese search. english search is ok. and how can i fix it? 2006/7/15, Doron Cohen <[EMAIL PROTECTED]>: > Hits hits = searcher.search(qp.Query(queryStr)); I think it should be qp.parse(String query) (rather than qp.Query(String field))

is it wrong with my code?

2006-07-14 Thread James liu
i can compile it correctly.but it can not search anything. i can't find error...so wanna u help me? package kk; import java.io.*; import java.util.Date; //import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.lucene.analysis.cjk.CJKAnalyzer; import org.apache.lucene.d

Re: FileDocument : cannot resolve symbol

2006-07-10 Thread James liu
i fix it...when i "import org.apache.lucene.demo.FileDocument;" and thk u for ur answer. 2006/7/10, Chris Hostetter <[EMAIL PROTECTED]>: : when i try javac Package: org.apache.lucene.demo; : name is IndexFiles.java : : it show me : FileDocument ,error info : cannot resolve symbol : : : how c

FileDocument : cannot resolve symbol

2006-07-08 Thread James liu
when i try javac Package: org.apache.lucene.demo; name is IndexFiles.java it show me : FileDocument ,error info : cannot resolve symbol how can i compile it?