Re: Best practice to map Lucene docids to real ids

2014-05-12 Thread Wouter Heijke
Hey Mike, That was a very useful response, also for long time Lucene users like myself who were stuck in legacy ways of doing things! I managed to easily change indexing of keys to DocValues and found myself wondering why I did not get anything returned, it appears indexing works transparent to an

Re: Best practice to map Lucene docids to real ids

2014-05-06 Thread Wouter Heijke
Hi, I would index it in a field, you can use the database id and even add additional information so compose your own key and retrieve that (only) when you collect search results. Wouter > Hi, > > what is the best way to retrieve our "real" ids (as they are in our > database) while searching? > >

Re: Luke?

2013-03-15 Thread Wouter Heijke
Great to read this, there is hope! And Luke definitely deserves to be a Lucene module. Wouter > If anyone is able to donate some effort, a nice future scenario could be > that Luke comes fully up to date with every Lucene release: > https://issues.apache.org/jira/browse/LUCENE-2562 > > - Mark > >

Re: Re: Luke?

2013-03-14 Thread Wouter Heijke
DocValues is the main problem in 4.2/Luke. For 4.1 there is a working Luke on github: https://github.com/mingfai/luke Wouter > I compile 4.1 > > 4.2 change a lot ?? > > I really think Luke should be in control of Lucene developer teams. --

Re: Luke?

2013-03-14 Thread Wouter Heijke
So judging from the (lack of) response so far it seems Luke development has stopped (last update on Google code is from August 2012) and it is now up to anyone to adopt te code. And... Luke / Lucene 4.2 is not just a matter of recompile. Wouter > Am 13.03.2013 10:23, schrieb dizh: >> I just recom

Luke?

2013-03-13 Thread Wouter Heijke
Anybody knows what is happening to Luke? Staying with the latest Lucene has become a risk since Luke seems to stay behind of the Lucene development. For 4.1 it was possible to find a patch on github, for 4.2 DocValues are broken in Luke. Wouter -

Re: German 'ue' -> 'u' conversion

2012-11-19 Thread Wouter Heijke
Hi, We use a solution where we have our own implementation similar to ASCIIFoldingFilter for German language specific characters (and also French and Dutch). Wouter > Hello, > > I have two questin regarding handling German umlauts in Lucene: > > 1. I'm trying to find a way to convert German Umlau

Re: Improving indexing speed

2011-11-17 Thread Wouter Heijke
Hi, We faced a similar problem. The solution was to give the indexer less work and let worker threads do all the work. They would result in pre-processed/analyzed/tokenized Documents that could be indexed by the writer without any processing. Wouter > Hi > > the file to be indexed depends on the

Re: Bet you didn't know Lucene can...

2011-10-22 Thread Wouter Heijke
Hi Grant, These are 2 cases into work i've done that I can think of: -use Lucene to match products in a database with eBay auctions, the title of the auction is used as the query to Lucene. -use a servlet filter and Lucene to map well-formed URL's into a website to it's individual (product) page

3.1 upgrade problem

2011-04-01 Thread Wouter Heijke
I'm doing the upgrade to Lucene 3.1.0. The upgrade failed on WhitespaceTokenizer being final in this version. I don't understand why anyone would make this tokenizer final, I was happlily extending it for many Lucene versions! Wouter -

Re: Facet search

2011-02-23 Thread Wouter Heijke
Hi, Same here, don't want Solr, so if you want facets BoBo is your friend! http://sna-projects.com/bobo/ Works great, very easy to use...the only thing is the name, is like dog food :-) But give BoBo a try! Wouter > Hello all, > > I am using Lucene for my project and we have new requirement to

Re: [POLL] Where do you get Lucene/Solr from? Maven? ASF Mirrors?

2011-01-19 Thread Wouter Heijke
> > Where do you get your Lucene/Solr downloads from? > > [] ASF Mirrors (linked in our release announcements or via the Lucene > website) > > [X] Maven repository (whether you use Maven, Ant+Ivy, Buildr, etc.) > > [] I/we build them from source via an SVN/Git checkout. > > [] Other (someone in you

RE: Migrating from Hit/Hits to TopDocs/TopDocCollector

2009-06-10 Thread Wouter Heijke
llector, use the doc number to get the filename from > the > cache. I think the speed improve will be >>10 times as fast! > > - > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: u...@thetaphi.de > >> -Original Mes

Re: Migrating from Hit/Hits to TopDocs/TopDocCollector

2009-06-10 Thread Wouter Heijke
Will this do? IndexReader indexReader = searcher.getIndexReader(); TopDocs topDocs = searcher.search(Query query, int n); for (int i = 0; i < topDocs.scoreDocs.length; i++) { Document document = indexReader.document( topDocs.scoreDocs[i].doc); final File f = new File( document.get( "FILE" ) )

Re: highlighting searched results in document

2009-05-27 Thread Wouter Heijke
Hi, It sounds to me that you are highlighting the query string and not the document. You will have to pass the document's content to getBestFragments() and it will work I think. Wouter > hi there, > I am using lucene highlighter to highlight the searched result > but it shows only the query s

Re: Matching query terms

2009-03-23 Thread Wouter Heijke
i came across that one, only the java doc says that it is expensive so I was hoping for a less expensive solution... Wouter > searcher.explain definitely seems to do the trick, going through the > sub-queries. > > paul > > > Le 23-mars-09 à 13:12, Wouter Heijke a écrit : &g

Matching query terms

2009-03-23 Thread Wouter Heijke
I want to know for each term in a query if it matched the result or not. What is the best way to implement this? Highlighter seems to be able to do the trick only that I don't need to 'highlight' any text. After knowing if terms in the query matched I want do do something else based on this. Woute

Re: NIOFSDirectory

2008-12-05 Thread Wouter Heijke
This is 2.9 code. For 2.4 you're stuck with the system property. Wouter > Thanks! > -John > > On Thu, Dec 4, 2008 at 2:16 PM, Yonik Seeley <[EMAIL PROTECTED]> wrote: > >> Details in the bug: >> https://issues.apache.org/jira/browse/LUCENE-1451 >> >> Use this constructor to create an instance of N

Re: NIOFSDirectory

2008-12-04 Thread Wouter Heijke
I had the same problem, only got it to work when I set the system property the way you do... UGLY! So if there is a solution like you ask for that use 2.4 I would be interested to know as well. Wouter > That does not help. The File/path is not stored with the instance. It is > in > a map FSDirect