Re: Newbie question: optimized files?

2011-01-12 Thread sol myr
That was it - thank :) --- On Tue, 1/11/11, Simon Willnauer wrote: From: Simon Willnauer Subject: Re: Newbie question: optimized files? To: java-user@lucene.apache.org Date: Tuesday, January 11, 2011, 12:06 AM Hey, this looks like you are hitting the optimization done in LUCENE-2773 (https

Re: Newbie question: optimized files?

2011-01-11 Thread Simon Willnauer
Hey, this looks like you are hitting the optimization done in LUCENE-2773 (https://issues.apache.org/jira/browse/LUCENE-2773) that prevents merged segments that are larger than 10% (by default - see LogMergePolicy#noCFSRatio) of the index size it will be left in non-compound format even if compoun

Re: Newbie question: optimized files?

2011-01-10 Thread sol myr
Hi, Continuing my question - I now suspect a bug in Lucene 3.0.3, because I ran the test with Lucene 3.0.0 and it worked okay (no junk files)... could anyone please confirm? --- On Mon, 1/10/11, sol myr wrote: From: sol myr Subject: Newbie question: optimized files? To: java-user@lucene.apac

Re: Newbie Question

2010-11-07 Thread farouk alhassan
Tsadok wrote: From: Israel Tsadok Subject: Re: Newbie Question To: java-user@lucene.apache.org Date: Sunday, 7 November, 2010, 9:54 (If I may) In Lucene terminology, an "index" is what would be a "database" in RDBMS terminology. It's the whole thing. A document is akin

Re: Newbie Question

2010-11-07 Thread Israel Tsadok
hanks > > --- On Sun, 7/11/10, Senthil wrote: > > From: Senthil > Subject: Re: Newbie Question > To: java-user@lucene.apache.org > Date: Sunday, 7 November, 2010, 8:30 > > Hi, > I recommend you to try simple indexer and searcher code from book which > clear the con

Re: Newbie Question

2010-11-07 Thread Senthil
Hi, I recommend you to try simple indexer and searcher code from book which clear the confusion. You need to specify the indexing folder and all the fields and values selected for indexing will stored in that folder. And during search, it searches from index and get the reference file path for

Re: Newbie Question

2010-11-07 Thread farouk alhassan
== document if there is only one document? Thanks --- On Sun, 7/11/10, Senthil wrote: From: Senthil Subject: Re: Newbie Question To: java-user@lucene.apache.org Date: Sunday, 7 November, 2010, 8:30 Hi,   I recommend you to try simple indexer and searcher code from book which clear the confusion

Re: newbie question again

2009-03-30 Thread Michael McCandless
My guess is you're not using a 2.9-dev (nightly) version of Lucene's jar? That constructor for FSDirectory is new in 2.9-dev, and the book's sources are actively tracking Lucene's. However, you don't need to create your own Makefile: there's an ant build.xml script. You should be able to just ru

Re: newbie question on querying on multiple attributes

2008-12-16 Thread Hardy Ferentschik
Hi, instead of the ClassBridge you can just annotate all the properties you want to index with @Field and build a BooleanQuery out of the input field. Indexing the properties into separate document fields is probably more extendable in the future when you for example only want to search on

Re: newbie question on querying on multiple attributes

2008-12-16 Thread Stephane Nicoll
Consider the use of the ClassBridge in Hibernate Search. Very useful. It basically allows you to merge multiple fields of your hibernate entity into a single lucene field. Once this is done, you can query this single field from lucene without the need for BooleanQuery. HTH, Stéphane On Tue, Dec

Re: Newbie Question: Query Creation Best Approach

2008-10-29 Thread Grant Ingersoll
Hmm, this strikes me as there being something wrong with the index, but it could be a bug, too. Do you get an error if you just run the BooleanQuery without the filter? How about if you run a simple TermQuery with the Filter? Can you open the index with Luke? Does the CheckIndex tool (i

Re: Newbie Question - Lucene Sorting NOT Ignoring NULL values

2008-10-22 Thread Reetha Hariharan
Hi Yonik: A simple RangeFilter did the trick > public class NotNullRangeFilter extends org.apache.lucene.search.Filter { >private RangeFilter rangeFilter; >public BitSet bits(IndexReader reader) throws IOException { >rangeFilter = RangeFilter.More("lastUpdatedDate"/*Field to sort*

Re: Newbie Question - Lucene Sorting NOT Ignoring NULL values

2008-10-14 Thread Yonik Seeley
You're on the right track I think... perhaps try using RangeFilter directly rather than creating your own class. Something like: Filter filter = RangeFilter.More("lastUpdatedDate",""); searcher.search(query, filter) If that works for you, then the next step would be to look at CachingWrapperFilt

Re: Newbie Question - Lucene Sorting NOT Ignoring NULL values

2008-10-14 Thread Reetha Hariharan
Hi Yonik, Thanks for your reply. In my case I don't want those document that has Null value for the field that I am willing to sort I tried writing my own filter using RangeFilter, but it doesn't work. I used something like the following in my custom filter. public class NotNullRangeFilter ext

Re: Newbie Question - Lucene Sorting NOT Ignoring NULL values

2008-10-14 Thread Yonik Seeley
On Tue, Oct 14, 2008 at 4:35 AM, Reetha Hariharan <[EMAIL PROTECTED]> wrote: > I am searching using one field, say X and want to sort the results using > another, say Y (Which can have null values). But I am expecting Sort to > ignore all the null values and just sort only records that has values i

Re: Newbie question: using Lucene to index hierarchical information.

2008-09-10 Thread Marcelo Ochoa
Hi Leonid If you are not familiar with Oracle XMLDB schema mappings here an example of how to store WikiPedia XML dumps into Oracle database, but using XML-to-relational model: http://marceloochoa.blogspot.com/2007/12/uploading-wikipedia-dumps-to-oracle.html The structure of WikiPedia dumps s

Re: Newbie question: using Lucene to index hierarchical information.

2008-09-10 Thread Leonid M.
Hi Karsten, Thanks a lot. I finally have got Your idea. Ok, I think it's worth to do the real job now :) Thanks for the advices, finally I have understood the directions I could go for it. > > do you really need the "Complex scenario"? > what kind of query is your use case? My Query UC is smth

Re: Newbie question: using Lucene to index hierarchical information.

2008-09-08 Thread Karsten F.
Hi Leonid, do you really need the "Complex scenario"? what kind of query is your use case? If you really need xpath please look for xml-Databases. Otherwise you can possible use xtf out of the box, because "indexing of large structured documents" is exactly the use case for which xtf was develo

Re: Newbie question: using Lucene to index hierarchical information.

2008-09-04 Thread Leonid Maslov
Hi all, Thanks a lot for such a quick reply. Both scenario sounds very well for me. I would like to do my best and try to implement any of them (as the proof of the concept) and then incrementally improve, retest, investigate and rewrite then :) So, from the soap opera to the question part then:

Re: Newbie question: using Lucene to index hierarchical information.

2008-09-02 Thread Karsten F.
Hi Leonid, what kind of query is your use case? Comlex scenario: You need all the hierarchical structure information in one query. This means you want to search with xpath in a real xml-Database. (like: All Documents with a subtitle XY which contains directly after this subtitle a table with the

Re: Newbie question: using Lucene to index hierarchical information.

2008-09-01 Thread Leonid Maslov
Any comments, suggestions? Maybe I should rephrase my original message or describe it in detail? I really would like to get any response if possible. Thanks a lot in advance! On Mon, Sep 1, 2008 at 10:25 AM, Leonid Maslov <[EMAIL PROTECTED]> wrote: > Hi all, > > First of all, sorry for my poor E

Re: Re: Newbie question: using Lucene to index hierarchical information.

2008-09-01 Thread tom
AUTOMATIC REPLY Tom Roberts is out of the office till 2nd September 2008. LUX reopens on 1st September 2008 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Newbie question: using Lucene to index hierarchical information.

2008-09-01 Thread tom
AUTOMATIC REPLY Tom Roberts is out of the office till 2nd September 2008. LUX reopens on 1st September 2008 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: newbie question (for John Griffin) - fixed

2008-07-15 Thread Chris Bamford
in wrote: Chris, -Original Message- From: Chris Bamford [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2008 9:15 AM To: java-user@lucene.apache.org Subject: Re: newbie question (for John Griffin) - fixed Hi John, Please ignore my earlier questions on this subject, as I have got

RE: newbie question (for John Griffin) - fixed

2008-07-15 Thread Steven A Rowe
e! > > Thanks, > > -Chris > BTW thanks for the tip about Luke > > > John Griffin wrote: > > Chris, > > > > -Original Message- > > From: Chris Bamford [mailto:[EMAIL PROTECTED] > > Sent: Thursday, July 10, 2008 9:15 AM > >

Re: newbie question (for John Griffin) - fixed

2008-07-15 Thread Chris Bamford
and 2.3 jars. Please advise! Thanks, -Chris BTW thanks for the tip about Luke John Griffin wrote: Chris, -Original Message- From: Chris Bamford [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2008 9:15 AM To: java-user@lucene.apache.org Subject: Re: newbie question (for John

RE: newbie question (for John Griffin) - fixed

2008-07-10 Thread John Griffin
Chris, -Original Message- From: Chris Bamford [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2008 9:15 AM To: java-user@lucene.apache.org Subject: Re: newbie question (for John Griffin) - fixed Hi John, Please ignore my earlier questions on this subject, as I have got to the

RE: newbie question (for John Griffin)

2008-07-10 Thread John Griffin
riginal Message- From: Chris Bamford [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2008 5:58 AM To: java-user@lucene.apache.org Subject: Re: newbie question (for John Griffin) Hi John, Further to my question below, I did some back-to-basics investigation of PhraseQueries and found that ev

Re: newbie question (for John Griffin) - fixed

2008-07-10 Thread Chris Bamford
Hi John, Please ignore my earlier questions on this subject, as I have got to the bottom of it. I was not passing each word in the phrase as a separate Term to the query; instead I was passing the whole string (doh!). Thanks. - Chris Chris Bamford wrote: Hi John, Further to my question be

Re: newbie question (for John Griffin)

2008-07-10 Thread Chris Bamford
Hi John, Further to my question below, I did some back-to-basics investigation of PhraseQueries and found that even basic ones fail for me... I found the attached code on the Internet (see http://affy.blogspot.com/2003/04/codebit-examples-for-all-of-lucenes.html) and this fails too... Can you

Re: newbie question

2008-07-10 Thread Chris Bamford
Hi John, Just continuing from an earlier question where I asked you how to handle strings like "from:fred flintston*" (sorry I have lost the original email). You advised me to write my own BooleanQuery and add to it Prefix- / Term- / Phrase- Querys as appropriate. I have done so, but am having

Re: Newbie question...

2007-02-06 Thread Don . Reese
a-user@lucene.apache.org cc Subject Re: Newbie question... Hi Don, No, Lucene does not require all documents to have the same set of fields. It is different from a database table - it is all very flexible. So doc1 can have fields f1, f2, and doc2 can have fields f2 f3, and doc3 can have only field f

Re: Newbie question...

2007-02-06 Thread Doron Cohen
Hi Don, No, Lucene does not require all documents to have the same set of fields. It is different from a database table - it is all very flexible. So doc1 can have fields f1, f2, and doc2 can have fields f2 f3, and doc3 can have only field f4, and doc4 can have no fields at all (likely that doc4 w

RE: Newbie question: lucene sorting problems and stored fields

2006-09-14 Thread Doron Cohen
ed the sortable > fields as 'stored' then the process above would preserve those > fields and hence sorting would proceed as normal. > > Does that make sense? > > Thanks > > Alan > > -Original Message----- > From: Erick Erickson [mailto:[EMAIL PROTECTED

RE: Newbie question: lucene sorting problems and stored fields

2006-09-14 Thread Alan Boshier
ould preserve those fields and hence sorting would proceed as normal. Does that make sense? Thanks Alan -Original Message- From: Erick Erickson [mailto:[EMAIL PROTECTED] Sent: Thu 9/14/2006 18:00 To: java-user@lucene.apache.org Cc: Subject:Re: Newbie question: lucene sort

Re: Newbie question: lucene sorting problems and stored fields

2006-09-14 Thread Yonik Seeley
On 9/14/06, Alan Boshier <[EMAIL PROTECTED]> wrote: That was my understanding (that they had to be indexed) but making them stored seems to have fixed the problem we were seeing, which is odd. Not being an expert on how lucene works internally, I'm struggling to see how this change could have ma

Re: Newbie question: lucene sorting problems and stored fields

2006-09-14 Thread Erick Erickson
Original Message- From: Mordo, Aviran (EXP N-NANNATEK) [mailto:[EMAIL PROTECTED] Sent: Thu 9/14/2006 17:18 To: java-user@lucene.apache.org Cc: Subject:RE: Newbie question: lucene sorting problems and stored fields AFIK, the field has to be indexed, but I don't think it

Re: Newbie question: lucene sorting problems and stored fields

2006-09-14 Thread Yonik Seeley
On 9/14/06, Alan Boshier <[EMAIL PROTECTED]> wrote: Is it a requirement when creating a field for sorting to make it stored? No, stored doesn't matter... it must be indexed though. -Yonik http://incubator.apache.org/solr Solr, the open-source Lucene search server -

RE: Newbie question: lucene sorting problems and stored fields

2006-09-14 Thread Alan Boshier
ssage- From: Mordo, Aviran (EXP N-NANNATEK) [mailto:[EMAIL PROTECTED] Sent: Thu 9/14/2006 17:18 To: java-user@lucene.apache.org Cc: Subject: RE: Newbie question: lucene sorting problems and stored fields AFIK, the field has to be indexed, but I don't think it has to be stored

RE: Newbie question: lucene sorting problems and stored fields

2006-09-14 Thread Mordo, Aviran (EXP N-NANNATEK)
AFIK, the field has to be indexed, but I don't think it has to be stored (but then again maybe I'm wrong) Aviran http://www.aviransplace.com -Original Message- From: Alan Boshier [mailto:[EMAIL PROTECTED] Sent: Thursday, September 14, 2006 11:39 AM To: java-user@lucene.apache.org Subjec

Re: newbie question on Mac OS X

2005-06-29 Thread Peter A. Friend
On Jun 29, 2005, at 1:12 AM, Xing Li wrote: 1) Downloaded 1.4.3 src 2) ran ant... everything builds 3) $ cd builds 4) $ java -jar lucene-1.5-rc1-dev.jar Failed to load Main-Class manifest attribute from lucene-1.5-rc1-dev.jar I haven't build anything java for almost 5 years so not sure wha

Re: newbie question on Mac OS X

2005-06-29 Thread Paul Libbrecht
Which main class would you expect to run ? I don't think there's one. Lucene is a library. paul PS: this has nothing MacOSX specific Le 29 juin 05, à 10:12, Xing Li a écrit : 1) Downloaded 1.4.3 src 2) ran ant... everything builds 3) $ cd builds 4) $ java -jar lucene-1.5-rc1-dev.jar

Re: Newbie question

2005-03-31 Thread Otis Gospodnetic
It's as easy as replacing a Jar, if you are upgrading from a Lucene version with compatible index format. Some versions changed the index format. See http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-lucene/CHANGES.txt?rev=1.96.2.6 for index format change information. If the index format chan

Re: Newbie question

2005-03-30 Thread Erik Hatcher
On Mar 30, 2005, at 4:42 PM, Luis Medina wrote: Newbie question here, is upgrading Lucene as easy as replacing the old Jar file with a newer version's Jar file? or do I need to recompile the application's code? Try it and see :) It should work fine by replacing the JAR, with no recompilation neces