Re: setting up lucene for use on mac OSX

2011-10-26 Thread Mead Lai
Daniel, this is the super cmd line, copy all the jars in the current dir. javac -Djava.ext.dirs=.; *.java Another way is using a IDE, as Eclipse. Regards, Mead On Tue, Oct 25, 2011 at 4:30 PM, janwen wrote: > hi: > In my lucene search project(b/s),i search the indexdir,get the > results.but

Re: Language Identifier with Lucene?

2011-10-24 Thread Mead Lai
Luca, I would like to know: how much language, your system could identify? In my view, this difficult part in your system is: how to collect so many languages/character in the world for *one person*... Regards, Mead On Sun, Oct 23, 2011 at 1:27 AM, Petite Abeille wrote: > > On Oct 22, 2011, at

Re: About "join.search" in 3.4 version.

2011-10-20 Thread Mead Lai
Term("id", id)); int count = termDocs.read(docs, freqs); if (count == 1) { bits.set(docs[0]); } } } return bits; } Regards, Mead On Fri, Oct 21, 2011 at 9:06 AM, Mead Lai wrote: > Thank you, Mike. > Are you sure the 'Solr' has implemented 'Join' fu

Re: Return Lucene field name when a query is matched

2011-10-20 Thread Mead Lai
you description was not clear. a query will return lots of results, so every item will be different on matched field name, if you use Boolean_OR to query. if you use boolean and, then every field will match. Regards, Mead On Thu, Oct 20, 2011 at 11:22 PM, Ian Lea wrote: > You can work it out

Re: About "join.search" in 3.4 version.

2011-10-20 Thread Mead Lai
ne (but I think it > really needs to be... any volunteers!?). > > Lucene's join package can handle use cases like nested documents or > parent/child, because it requires that you index a single primary row > AND all joined documents together as a single block of documents.

Re: this IndexReader is closed only with jar

2011-10-20 Thread Mead Lai
Its a complex situation. We didn't know what did you change. I suggest you to compare/diff your code with offical version. Regards, Mead On Tue, Oct 18, 2011 at 1:13 AM, Zeynep P. wrote: > Hi, > > I am having a weird experience. I made a few changes with the source code > (Lucene 3.3). I creat

About "join.search" in 3.4 version.

2011-10-20 Thread Mead Lai
'2011-09-23' and '2011-10-19'. My question is, could "org.apache.lucene.search.join" solve this case? If possible, thanks for providing some example or clue. Thanks for your time. Regards, Mead Lai

Re: OutOfMemoryError

2011-10-18 Thread Mead Lai
Tamara, You may use StringBuffer instead of String docText = hits.doc(j).getField("DOCUMENT").stringValue() ; after that you may use StringBuffer.delete() to release memery. Another way is using x64-bit machine. Regards, Mead On Wed, Oct 19, 2011 at 5:14 AM, Otis Gospodnetic < otis_gospodne...@

May I have "order expression" in Query?

2011-10-12 Thread Mead Lai
Hello all, Well, I add some document into index with "date" type : doc.add(new Field("datestamp", "20111012",Store.YES, Index.NOT_ANALYZED)); Then, I want to get the result order by "datestamp" field. I am really sorry aboutI am a newer and did not read some documents very carefully, actu

Re: Is there any "Query" in Lucene can search the term, which is similar as "SQL-LIKE"?

2011-10-12 Thread Mead Lai
While, I found "Range Searches", it would useful for this circumstance. Thank you. Regards, Mead On Thu, Oct 13, 2011 at 10:10 AM, Mead Lai wrote: > Thank you very much, > With your helps, that, finally, I use "WildcardQuery" to find right result: > B

Re: Is there any "Query" in Lucene can search the term, which is similar as "SQL-LIKE"?

2011-10-12 Thread Mead Lai
ication > site: http://www.dbsight.net > demo: http://search.dbsight.com > Lucene Database Search in 3 minutes: > > http://wiki.dbsight.com/index.php?title=Create_Lucene_Database_Search_in_3_minutes > > On Tue, Oct 11, 2011 at 12:11 AM, Mead Lai wrote: > > > He

Is there any "Query" in Lucene can search the term, which is similar as "SQL-LIKE"?

2011-10-11 Thread Mead Lai
Hello all, *Background: *There are *ONE MILLION* data in a table, and this table has 100 columns inside. The application need to search the data in EVERY column with one 'keyword'. so, I try it in a clumsy way, using a database view, then search the view. Just like the following SQL: *=Step1*: crea