hello,I have a problem about lucene,please help me to explain ,thank you

2015-09-22 Thread 王建军
There is a Class org.apache.lucene.codecs.blocktree.BlockTreeTermsWriter which have two parameters,one is DEFAULT_MIN_BLOCK_SIZE,the other is DEFAULT_MAX_BLOCK_SIZE;their default values is 25 and 48;when I make their values to bigger,for example,200 and 398;And then to make index,the result is

RE: hello,I have a problem about lucene,please help me to explain ,thank you

2015-09-22 Thread will martin
Hi: Would you mind doing websearch and cataloging the relevant pages into a primer? Thx, Will -Original Message- From: 王建军 [mailto:jianjun200...@163.com] Sent: Tuesday, September 22, 2015 4:02 AM To: java-user@lucene.apache.org Subject: hello,I have a problem about lucene,please help me

hello,I have a problem about lucene,please help me to explain ,thank you

2015-09-14 Thread 王建军
There is a Class org.apache.lucene.codecs.blocktree.BlockTreeTermsWriter which have two parameters,one is DEFAULT_MIN_BLOCK_SIZE,the other is DEFAULT_MAX_BLOCK_SIZE;their default values is 25 and 48;when I make their values to bigger,for example,200 and 398;And then to make index,the

Re: Problem querying Lucene after escaping

2012-06-26 Thread secevalliv
Thanks for the advice Ian. As you suggested I tried indexing alt_id as Index.NOT_ANALYZED and stick with TermQuery. It works now. Thanks again, José M. Villaveces On 25 June 2012 17:27, Ian Lea ian@gmail.com wrote: The key thing is to be consistent. You can either replace your

Problem querying Lucene after escaping

2012-06-25 Thread secevalliv
I'm quite new to Lucene and recently, I ran into a problem. I have a lucene document that looks like this: --- type --- gene --- id --- xla:379474 --- alt_id --- emb:BC054227 gb:BC054227 ncbi-geneid:379474 ncbi-gi:148230166 rs:NM_001086315 rs:NP_001079784 unigene:Xl.24622 xla:379474 I created

Re: Problem querying Lucene after escaping

2012-06-25 Thread Ian Lea
It's probably an issue with analysis and colons and hyphens and dots, maybe lower/upper case as well. Are you using an analyzer? Which? If not, which might be consistent with your usage of TermQuery, how are you storing the multiple values for alt_id? See also the FAQ entry Why am I getting no

Re: Problem querying Lucene after escaping

2012-06-25 Thread Erick Erickson
TermQuerys are assumed to be parsed already. So you're looking for a _single_ term ncbi-geneid:379474 or XI.24622. You'd construct something like Query query1 = new TermQuery(new Term(type, gene)); Query query2 = new TermQuery(new Term(alt_Id, ncbi-geneid:379474)); Query query3 = new

Re: Problem querying Lucene after escaping

2012-06-25 Thread secevalliv
Hi All, Thanks for the quick reply. It seems like indeed my index is not what I think it is so maybe I'm using the wrong analyzer. Here is the code I use to index the multiple values of alt_id: indexWriter = new IndexWriter(FSDirectory.open(new File(path)),newStandardAnalyzer(Version.

Re: Problem querying Lucene after escaping

2012-06-25 Thread Ian Lea
The key thing is to be consistent. You can either replace your TermQuery code with the output from QueryParser.parse, with QP created with StandardAnalyzer, or index alt_id as Index.NOT_ANALYZED and stick with TermQuery. I think the latter will work even with multiple terms/tokens stored for

Some Problem with Lucene in Java

2011-02-03 Thread Cescy
Hi, I am developing an advanced pdf search engine in java by using pdfbox and lucene. And I must display the context of each keyword in the user interface, but i cannot find a method to do so. Most of the methods provided are used to deal with documents with whole content in the specified

Problem in lucene query

2009-09-10 Thread vibhuti
Hello I am new to Lucene and facing a problem while performing searches. I am using lucene 2.2.0. My application indexes documents on keyword field which contains integer values. If the value is negative the query does not return correct results. Following is my lucene query:

Re: Problem in lucene query

2009-09-10 Thread AHMET ARSLAN
I am new to Lucene and facing a problem while performing searches. I am using lucene 2.2.0. My application indexes documents on keyword field which contains integer values. Which analyzer/tokenizer are you using on that field? I am assuming it is a tokenized field. If the value is

Re: Problem in lucene query

2009-09-10 Thread Anshum
Hi Vibhuti, Not in sync with your query, but I'd advice you to graduate you to a rather recent lucene release. Something like 2.4.1 or atleast a 2.3.1 [Considering its already time for 2.9]. -- Anshum Gupta Naukri Labs! http://ai-cafe.blogspot.com The facts expressed here belong to everybody,

Re: Problem in lucene query

2009-09-10 Thread Erick Erickson
Also, get a copy of Luke and examine your index, that'll tell you what isactually in there *and* it will let you see how queries parse under various analyzers. Best Erick On Thu, Sep 10, 2009 at 6:47 AM, vibhuti vibhuti.gu...@thepsi.com wrote: Hello I am new to Lucene and facing a

Problem building Lucene 2_4 with Ant/Eclipse

2009-03-08 Thread Raymond Balmès
I get the problem below in trying to build Lucene 2_4. I'm using Eclipse and just run Ant on the top build.xml. It is pretty weird because the core is indeed build, but for some reason the build stops there and I don't get any of the demos build etc... Any idea what this svnversion program is ?

RE: Problem building Lucene 2_4 with Ant/Eclipse

2009-03-08 Thread Uwe Schindler
[mailto:raymond.bal...@gmail.com] Sent: Sunday, March 08, 2009 4:06 PM To: java-user@lucene.apache.org Subject: Problem building Lucene 2_4 with Ant/Eclipse I get the problem below in trying to build Lucene 2_4. I'm using Eclipse and just run Ant on the top build.xml. It is pretty weird

Re: Problem building Lucene 2_4 with Ant/Eclipse

2009-03-08 Thread Raymond Balmès
. - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de -Original Message- From: Raymond Balmès [mailto:raymond.bal...@gmail.com] Sent: Sunday, March 08, 2009 4:06 PM To: java-user@lucene.apache.org Subject: Problem building

Re: Problem building Lucene 2_4 with Ant/Eclipse

2009-03-08 Thread Chris Hostetter
: ok, thanks. Thought the top build.xml was going to build everything : underneath. it can, but the default target only builds the core. try ant package or ant dist -Hoss - To unsubscribe, e-mail:

Re: Problem with lucene search starting to return 0 hits when a few seconds earlier it was returning hundreds

2008-09-06 Thread 叶双明
Subject: Re: Problem with lucene search starting to return 0 hits when a few seconds earlier it was returning hundreds * And what's about visibility filter? * Are you sure no one else accesses IndexReader and modifies index? See reader.maxDocs() to be confident. On Fri, Sep 5, 2008 at 12

Re: Problem with lucene search starting to return 0 hits when a few seconds earlier it was returning hundreds

2008-09-05 Thread Erick Erickson
. - Original Message From: Leonid M. [EMAIL PROTECTED] To: java-user@lucene.apache.org Sent: Thursday, September 4, 2008 5:35:47 PM Subject: Re: Problem with lucene search starting to return 0 hits when a few seconds earlier it was returning hundreds * And what's about visibility filter

Problem with lucene search starting to return 0 hits when a few seconds earlier it was returning hundreds

2008-09-04 Thread Justin Grunau
We have some code that uses lucene which has been working perfectly well for several months. Recently, a QA team in our organization has set up a server with a much larger data set than we have ever tested with in the past: the resulting lucene index is about 3G in size. On this particular

Re: Problem with lucene search starting to return 0 hits when a few seconds earlier it was returning hundreds

2008-09-04 Thread Leonid M.
* And what's about visibility filter? * Are you sure no one else accesses IndexReader and modifies index? See reader.maxDocs() to be confident. On Fri, Sep 5, 2008 at 12:19 AM, Justin Grunau [EMAIL PROTECTED] wrote: We have some code that uses lucene which has been working perfectly well for

Re: Problem with lucene search starting to return 0 hits when a few seconds earlier it was returning hundreds

2008-09-04 Thread Justin Grunau
] To: java-user@lucene.apache.org Sent: Thursday, September 4, 2008 5:35:47 PM Subject: Re: Problem with lucene search starting to return 0 hits when a few seconds earlier it was returning hundreds * And what's about visibility filter? * Are you sure no one else accesses IndexReader and modifies index

Re: Problem with lucene search starting to return 0 hits when a few seconds earlier it was returning hundreds

2008-09-04 Thread Leonid M.
From: Leonid M. [EMAIL PROTECTED] To: java-user@lucene.apache.org Sent: Thursday, September 4, 2008 5:35:47 PM Subject: Re: Problem with lucene search starting to return 0 hits when a few seconds earlier it was returning hundreds * And what's about visibility filter? * Are you sure

Problem using Lucene on Ubuntu

2008-02-18 Thread kratoras
greek word but it continues to search for english words. Could it be a problem of fonts in my ubuntu or what?Greek fonts are installed though. Thanks for any answers in advance -- View this message in context: http://www.nabble.com/Problem-using-Lucene-on-Ubuntu-tp15543843p15543843.html Sent

Re: Problem using Lucene on Ubuntu

2008-02-18 Thread Grant Ingersoll
://www.nabble.com/Problem-using-Lucene-on-Ubuntu-tp15543843p15543843.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: Problem using Lucene on Ubuntu

2008-02-18 Thread kratoras
: http://www.nabble.com/Problem-using-Lucene-on-Ubuntu-tp15543843p15544612.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Problem using Lucene on Ubuntu

2008-02-18 Thread Grant Ingersoll
it to the index?? -- View this message in context: http://www.nabble.com/Problem-using-Lucene-on-Ubuntu-tp15543843p15544612.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To unsubscribe, e-mail

Re: Problem using Lucene on Ubuntu

2008-02-18 Thread kratoras
; The wordextractor takes an inputstream as an arguement. Should i determine the encoding of the inputstream and how? -- View this message in context: http://www.nabble.com/Problem-using-Lucene-on-Ubuntu-tp15543843p15545082.html Sent from the Lucene - Java Users mailing list archive at Nabble.com

Re: Problem using Lucene on Ubuntu

2008-02-18 Thread Grant Ingersoll
determine the encoding of the inputstream and how? -- View this message in context: http://www.nabble.com/Problem-using-Lucene-on-Ubuntu-tp15543843p15545082.html Sent from the Lucene - Java Users mailing list archive at Nabble.com

Re: Problem using Lucene on Ubuntu

2008-02-18 Thread Jan Peter Stotz
would print out the extracted text into a plain text files and compare if there are differences between the file generated on Windows and Linux/Ubuntu. This allows to determine if this is a WordExtractor or a Lucene problem. Jan

Re: Problem using Lucene on Ubuntu

2008-02-18 Thread Grant Ingersoll
. Those files are binary and therefore does not have an encoding. I would print out the extracted text into a plain text files and compare if there are differences between the file generated on Windows and Linux/Ubuntu. This allows to determine if this is a WordExtractor or a Lucene problem

Re: Problem in Lucene

2007-07-31 Thread Erick Erickson
Why not fix your code to be 2.1 compliant instead? For instance, StopFilter has a constructor that takes Set and a constructor that takes an array of String for stopwords. Otherwise, please tell us more about what you are doing with MakeStopTable and why making your code 2.1 compliant isn't an

Re: Problem in Lucene

2007-07-31 Thread Srinivasarao Vundavalli
The code that is making use of that makeStopFilter is not written by me. It has read-only permission. So, I can't make any changes to it. On 7/31/07, Erick Erickson [EMAIL PROTECTED] wrote: Why not fix your code to be 2.1 compliant instead? For instance, StopFilter has a constructor that takes

Problem in Lucene

2007-07-30 Thread Srinivasarao Vundavalli
Hi, I am using nutch index to search in lucene. One of my classes use makeStopTable method ( which is deprecated) of class StopFilter in org.apache.lucene.analysis. When I run my program with lucene 2.1.0 ~/j2sdk1.4.2/bin/java -classpath .:lucene-core-2.1.0.jar SearchFiles Exception in

Re: Problem with lucene.

2007-01-30 Thread poeta simbolista
the String that i want to search for on the field description is ignored. If i use normal words then it is taken. Do you know why this could be? Thanks. -- View this message in context: http://www.nabble.com/Problem-with-lucene.-tf3137405.html#a8694565 Sent from the Lucene - Java Users

Re: Problem with lucene.

2007-01-30 Thread Erick Erickson
the query is parsed, it returns me the empty String, which means the String that i want to search for on the field description is ignored. If i use normal words then it is taken. Do you know why this could be? Thanks. -- View this message in context: http://www.nabble.com/Problem-with-lucene

Problem with lucene.

2007-01-29 Thread poeta simbolista
. If i use normal words then it is taken. Do you know why this could be? Thanks. -- View this message in context: http://www.nabble.com/Problem-with-lucene.-tf3137405.html#a8694565 Sent from the Lucene - Java Users mailing list archive at Nabble.com

Re: Problem with lucene.

2007-01-29 Thread Erick Erickson
in context: http://www.nabble.com/Problem-with-lucene.-tf3137405.html#a8694565 Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

My frirst problem using lucene

2006-10-31 Thread Miren
hello i am trying to use lucene annd i am my fisrt problem. i have install the demo example into the tomcat and when i try to load osne search, into the results.jsp page appears this error. can you help me? thanks. org.apache.jasper.JasperException: No se puede compilar la clase para JSP Ha

Re: My frirst problem using lucene

2006-10-31 Thread Doron Cohen
Might be related to an already resolved issue - see related discussion: http://www.nabble.com/lucene-web-demo-is-not-working--tf1736444.html#a4718639 Miren [EMAIL PROTECTED] wrote on 31/10/2006 03:57:50: parse(java.lang.String) in org.apache.lucene.queryParser.QueryParser cannot be applied to

Re: Problem with lucene 1.9.1

2006-05-04 Thread Daniel Naber
On Mittwoch 03 Mai 2006 21:59, Rodrigo Marcuschi wrote: I am having problems using lucene 1.9.1. I was using 1.4.3 successfully, Mhh, IndexModifier isn't part of Lucene 1.4, did you add it manually? documents I add, all I get is '1 docs in index'. If I DON'T close the modifier, It must be

Problem Running Lucene in Action sample codes

2005-10-21 Thread anushri kumar
- Yahoo! FareChase - Search multiple travel sites in one click.

Problem Running Lucene in Action sample codes

2005-10-21 Thread anushri kumar
Hi, I'm having trouble running the sample codes in Lucene in Action. I followed the instructions in the README file and in the book but no luck. I'm not familiar with ant. Can some one help please ?? Anushri - Yahoo! FareChase - Search

Re: Weird Problem with Lucene

2005-06-22 Thread Erik Hatcher
Please send us a (short and sweet) example that demonstrates this issue - preferably using RAMDirectory in a way that is easily runnable by someone else. Thanks, Erik On Jun 22, 2005, at 3:36 PM, JM Tinghir wrote: Hi, Actually I have the same problem. Queries are working on a few

Webstart problem with Lucene

2005-06-12 Thread Ahmet Aksoy
Hi, I prepared a dictionary application which uses Lucene. I made my application to be downloaded with webstart. Everything is OK, but I can't access Lucene index files. When I made a search on the internet about the subject, I found some clues saying that it is impossible to put Lucene indexes

Re: Problem with Lucene web

2005-03-03 Thread Erik Hatcher
I have corrected the incorrect hyperlink issues. Sorry 'bout that. Erik On Mar 3, 2005, at 2:22 PM, Antonio Chillarón Barahona wrote: Hello, I am sorry if this is not the proper forum for this question. Recently, I have tried to download Snowball from Lucene's Sandbox but the link on