|
From: <am...@ma...> - 2003-10-17 00:02:15
|
Hi all, While playing with the Java Lucene, getting it connected to PHP I was reading some its docs and it says there that documents should be indexed and querried with the same Analyzer. Now I went back to the dll/php wrapper code supplied with CLucene and going through the dll wrapper there's alot of mixing and matching, so I wonder if that's an error or not in it, because it uses different analyzers for different things? For example: API method CL_Open goes to open/create the CLucene index with a SimpleAnalyzer, and so does the CL_Optimize and CL_Search, yet on the other hand CL_Insert_Document and CL_Delete use StandardAnalyzer. Can't say I to worried about optimize or delete right now, though they are also important functions, but shouldn't insert and search use the same analyzer? Would that be the reason that some of the queries do not come out the way they should, ie return all/proper hits? I know that choosing the analyzer hasn't been implemented into the wrapper, and I'm not even sure what is the current status of analyzers in CLucene, so I'm seeking some guidence here, pretty please and thank you :) thanks -pedja P.S. Rob excellent job on the patch, I still haven't crashed your code :-) |