danlih
2007-08-20 13:06:03 UTC
Hi !
I have setup an Index catalog (called Development) on a fileserver.
Filserver: Windows 2003 SP2
The catalog configuration (some of the parameters):
Location=E:\Index\Development
FilterFilesWithUnknownExtensions=1
Scope=E:\Development
I have created two files in E:\Development
CFile.c:
/* Source: CFile.c */
#include <stdio.h>
main (int argc, char *argv[])
{
printf("English: You live to work\n");
printf("Svenska: Man lever för att jobba\n");
}
TextFile.txt:
/* Source: TextFile.txt */
#include <stdio.h>
main (int argc, char *argv[])
{
printf("English: You live to work\n");
printf("Svenska: Man lever för att jobba\n");
}
The first printf is written in English and the second printf is written in
Swedish
I'm using Ole DB to make queries to the Index
OleDbConnection MyConnection = new
OleDbConnection("Provider=MSIDXS");
MyConnection.Open();
string SQLQueryString = "SELECT Rank, VPath, DocTitle, Filename,
Characterization, Write, DocAuthor FROM LOKI.Development..SCOPE('DEEP
TRAVERSAL OF \"/\"') WHERE CONTAINS('\"man lever för att jobba\"')";
OleDbCommand MyCommand = new OleDbCommand(SQLQueryString, MyConnection);
Result when I'm making the queries:
Query: CONTAINS('\"man lever för att jobba\"')
Result: Found: cfile.c
Query: CONTAINS('man OR lever OR för OR att OR jobba')
Result: Found: cfile.c and textfile.txt
Query: CONTAINS('man AND lever AND för AND att AND jobba')
Result: Found: cfile.c and textfile.txt
Query: CONTAINS('\"You live to work\"')
Result: No files where found
Query: CONTAINS('you AND live AND to AND work')
Result: No files where found
Query: CONTAINS('you OR live OR to OR work')
Result: Found: cfile.c and textfile.txt
There seems to some problem when having different language in files, but
I'm not the man to figure out what ...
How should I do to be able to search exact phrases??
Kind regards Daniel Liljebladh
dl AT fordonsdata.se
I have setup an Index catalog (called Development) on a fileserver.
Filserver: Windows 2003 SP2
The catalog configuration (some of the parameters):
Location=E:\Index\Development
FilterFilesWithUnknownExtensions=1
Scope=E:\Development
I have created two files in E:\Development
CFile.c:
/* Source: CFile.c */
#include <stdio.h>
main (int argc, char *argv[])
{
printf("English: You live to work\n");
printf("Svenska: Man lever för att jobba\n");
}
TextFile.txt:
/* Source: TextFile.txt */
#include <stdio.h>
main (int argc, char *argv[])
{
printf("English: You live to work\n");
printf("Svenska: Man lever för att jobba\n");
}
The first printf is written in English and the second printf is written in
Swedish
I'm using Ole DB to make queries to the Index
OleDbConnection MyConnection = new
OleDbConnection("Provider=MSIDXS");
MyConnection.Open();
string SQLQueryString = "SELECT Rank, VPath, DocTitle, Filename,
Characterization, Write, DocAuthor FROM LOKI.Development..SCOPE('DEEP
TRAVERSAL OF \"/\"') WHERE CONTAINS('\"man lever för att jobba\"')";
OleDbCommand MyCommand = new OleDbCommand(SQLQueryString, MyConnection);
Result when I'm making the queries:
Query: CONTAINS('\"man lever för att jobba\"')
Result: Found: cfile.c
Query: CONTAINS('man OR lever OR för OR att OR jobba')
Result: Found: cfile.c and textfile.txt
Query: CONTAINS('man AND lever AND för AND att AND jobba')
Result: Found: cfile.c and textfile.txt
Query: CONTAINS('\"You live to work\"')
Result: No files where found
Query: CONTAINS('you AND live AND to AND work')
Result: No files where found
Query: CONTAINS('you OR live OR to OR work')
Result: Found: cfile.c and textfile.txt
There seems to some problem when having different language in files, but
I'm not the man to figure out what ...
How should I do to be able to search exact phrases??
Kind regards Daniel Liljebladh
dl AT fordonsdata.se