You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by jz...@apache.org on 2010/04/30 10:57:13 UTC

svn commit: r939591 - /archiva/trunk/archiva-docs/src/site/apt/userguide/searching.apt

Author: jzurbano
Date: Fri Apr 30 08:57:13 2010
New Revision: 939591

URL: http://svn.apache.org/viewvc?rev=939591&view=rev
Log:
[MRM-1125] - default search should be AND not OR for multiple keywords
* document Quick Search behavior


Modified:
    archiva/trunk/archiva-docs/src/site/apt/userguide/searching.apt

Modified: archiva/trunk/archiva-docs/src/site/apt/userguide/searching.apt
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-docs/src/site/apt/userguide/searching.apt?rev=939591&r1=939590&r2=939591&view=diff
==============================================================================
--- archiva/trunk/archiva-docs/src/site/apt/userguide/searching.apt (original)
+++ archiva/trunk/archiva-docs/src/site/apt/userguide/searching.apt Fri Apr 30 08:57:13 2010
@@ -71,9 +71,15 @@ Searching
 * Quick Search
 
   The contents of all the files in the repository that matches the above configuration will be indexed during repository
-  scan. So when you type a word in the search box, Archiva will search the index for that query string and return all the
-  search hits in the form of a paginated list of artifacts. For example you typed in 'ant', the search result
-  would contain the list of artifacts that use or reference 'ant'.
+  scan. So when you type a word in the search box, Archiva will search the index for that query string and
+  return all the search hits in the form of a paginated list of artifacts.
+  For example you typed in 'ant', the search result would contain the list of artifacts that use or
+  reference 'ant'.
+  
+  For query strings that are separated by whitespaces, Archiva searches for the exact query string.
+  So if you typed in 'commons logging', the search result would contain the list of artifacts that use or
+  reference 'commons logging' and not artifacts that only contain both 'commons' and 'logging'
+  such as 'commons-logging'.
 
   Archiva can also search the index for java classes, packages, and methods and return a list of artifacts containing the
   query string. In the previous versions, we need to append the keyword 'bytecode:' before the query string in the search box



Re: svn commit: r939591 - /archiva/trunk/archiva-docs/src/site/apt/userguide/searching.apt

Posted by Brett Porter <br...@apache.org>.
On 30/04/2010, at 6:57 PM, jzurbano@apache.org wrote:

> +  For query strings that are separated by whitespaces, Archiva searches for the exact query string.
> +  So if you typed in 'commons logging', the search result would contain the list of artifacts that use or
> +  reference 'commons logging' and not artifacts that only contain both 'commons' and 'logging'
> +  such as 'commons-logging'.


Jev, this example seems counter to the text. You say "exact query string", but the example seems to be "a string that contains both terms", ie it behaves more like commons AND logging. Can you clarify it further?

- Brett

--
Brett Porter
brett@apache.org
http://brettporter.wordpress.com/