diff options
author | Andreas Bille <abi@openoffice.org> | 2001-05-11 11:39:37 +0000 |
---|---|---|
committer | Andreas Bille <abi@openoffice.org> | 2001-05-11 11:39:37 +0000 |
commit | 3879a47276f3de520bf8737c8aac2e543396872b (patch) | |
tree | 6a3fe8bb5acebc7cf92cac74d0228deb49a48761 /xmlhelp/source | |
parent | e6de18799594feefb7708e559b0b3edbef755152 (diff) |
More testing
Diffstat (limited to 'xmlhelp/source')
-rw-r--r-- | xmlhelp/source/cxxhelp/test/searchdemo.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/xmlhelp/source/cxxhelp/test/searchdemo.cxx b/xmlhelp/source/cxxhelp/test/searchdemo.cxx index 0884cb8e0849..c85e514c5b02 100644 --- a/xmlhelp/source/cxxhelp/test/searchdemo.cxx +++ b/xmlhelp/source/cxxhelp/test/searchdemo.cxx @@ -2,9 +2,9 @@ * * $RCSfile: searchdemo.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: abi $ $Date: 2001-05-10 15:26:22 $ + * last change: $Author: abi $ $Date: 2001-05-11 12:39:37 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -112,10 +112,11 @@ int main( int argc,char* argv[] ) rtl::OUString installDir = rtl::OUString::createFromAscii( "//./e|/index/" ); QueryProcessor queryProcessor( installDir ); - std::vector<rtl::OUString> Query(1); - Query[0] = ( rtl::OUString::createFromAscii( "text*" ) ); + std::vector<rtl::OUString> Query(2); + Query[0] = rtl::OUString::createFromAscii( "text*" ); + Query[1] = rtl::OUString::createFromAscii( "abbildung" ); rtl::OUString Scope = rtl::OUString::createFromAscii( "" ); - int HitCount = 10; + int HitCount = 40; QueryStatement queryStatement( HitCount,Query,Scope ); queryResults = queryProcessor.processQuery( queryStatement ); @@ -128,7 +129,7 @@ int main( int argc,char* argv[] ) QueryHitIterator* it = queryResults->makeQueryHitIterator(); sal_Int32 j = 0; - while( it->next() ) + while( j < 10 && it->next() ) { printf( "Ergebnis %2d ",j ); QueryHitData* qhd = it->getHit( translator ); |