Zvi Rahamim wrote:
I have some questions relates to the Add dependency (Repository Search) Dialog: 1. When I type a string, where does the eclipse search? (local repository or all maven repositories including local)?
I goes into a local index. We package index for ibiblio snapshot with plugin releases. Obviously the one included with 0.9 release is way outdated. However local repository automatically indexed too (transparently when artifacts are downloaded by plugin, and also reindexed on restart). In the head, there is also option to force reindexing.

There are plans to have incremental updates for ibiblio index as well as updates for proprietary repositories. But that require cooperation with Maven team, and they are being little slow in this regard.
2. What are the search rulse (use of * and so on):
I ask this because when trying to search for "maven-scm-plugin" I get no result, but when searching for "maven-scm-" I get among all results the maven-scm-plugin. In addition, when trying to search for "log4j" it shows nothing, but when searching for "log4j*" it finds the log4j.
It is because I used default lucene tokenizer. So, for maven-scm-plugin it produces 3 tokens, and for log4j - one "log". Then on top of this there is some "smart" code to create lucene query. Logic is something like this:

-- If query string has "*" then WildcardQuery is used.
-- otherwise query string is split using separators '\', '/', '.', ' ' (maybe we should add digits there too) and then PhraseQuery is constructed using each token as a Term. -- If on previous step split produced only one token, then TermQuery is created for that token.

I guess we could use some unit tests to make user experience more predicatble... I left it as is because some folks from Maven were suggesting to use Archiva indexer and search packages instead of my own one. Though mine is probably 30..50% smaller and allows to search by class names...

 regards,
 Eugene



---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to