IIS Index Server - Querying on multiple languages.

This is Interesting: Free IT Magazines  
Home > Archive > IIS Index Server > April 2004 > Querying on multiple languages.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Querying on multiple languages.
Sheetal Mahajan

2004-04-05, 7:34 am

Hi,

I am using OLEDB Provider to query on Index Server. My application is
developed in .Net which uses Sql to query index server.

I want to have support of querying for various languages in my
application. I looked at many articles in MSDN but cudn't find how to
query for various locales supported in Index Server.

Please tell me how to query for documents in a specific language using
SQL and OLEDB Provider. Where and how to specify the LocaleID in
query?

Thanks
Sheetal.
Sheetal Mahajan

2004-04-06, 6:34 am

smahajan_1234@yahoo.com (Sheetal Mahajan) wrote in message news:<fe686ffd.0404050317.3844f1f8@posting.google.com>...
> Hi,
>
> I am using OLEDB Provider to query on Index Server. My application is
> developed in .Net which uses Sql to query index server.
>
> I want to have support of querying for various languages in my
> application. I looked at many articles in MSDN but cudn't find how to
> query for various locales supported in Index Server.
>
> Please tell me how to query for documents in a specific language using
> SQL and OLEDB Provider. Where and how to specify the LocaleID in
> query?
>
> Thanks
> Sheetal.


Hi Again,

While my research continued, I tried some of the things but nothing
worked out for me.
I tried giving "Locale Identifier" in connection string as 1031, 1033
etc but nothing happened. Everytime it was giving same results
irrespective of what I gave as Locale Identifier. I tried setting
dynamic property(SQL Content Query Locale String) also in Command
object but this also cudn't help :o(

Please tell me if anything else is required to be done.

Thanks in advance
Sheetal.
abbott

2004-04-06, 10:37 pm

I have got some examples from the platform SDK , but it
can not work at all. Have you got it and have the program
passed the compile? if you have , would you please tell me
how, Thanks!


>-----Original Message-----
>smahajan_1234@yahoo.com (Sheetal Mahajan) wrote in

message
news:<fe686ffd.0404050317.3844f1f8@posting.google.com>...
application is[color=darkred]
languages in my[color=darkred]
cudn't find how to[color=darkred]
language using[color=darkred]
LocaleID in[color=darkred]
>
>Hi Again,
>
>While my research continued, I tried some of the things

but nothing
>worked out for me.
>I tried giving "Locale Identifier" in connection string

as 1031, 1033
>etc but nothing happened. Everytime it was giving same

results
>irrespective of what I gave as Locale Identifier. I tried

setting
>dynamic property(SQL Content Query Locale String) also in

Command
>object but this also cudn't help :o(
>
>Please tell me if anything else is required to be done.
>
>Thanks in advance
>Sheetal.
>.
>

Sheetal Mahajan

2004-04-07, 7:40 am

I cudn't get examples in platform SDK. Could you please post the
example code here.

I have tried couple of tricks (as given in various MSDN articles),
1. Using ADO.Net OLEDB Provider and giving "Locale Identifier"
attribute in connection string. My connection string looks like,

provider=MSIDXS.1;Locale Identifier=nnnn;

Then I give the query like,

select path from SCOPE('\"C:\\MyDir\"')

Here MyDir contains pages in chinese and greek language.

2. Using IXSSO object to query indexing service. Then setting LocaleID
property of IXSSO Query object.

3. Using ADO and setting "SQL Content Query Locale String" dynamic
property in command object and then firing the query.

Unfortunately, nothing seems to work. In every case it returns me the
same number of records irrespective of Locale given at various places.
As expected it should vary the result count based on the locale given
but it is not doing so.

I have tried accessing CiLocale and MS.Locale properties of Index
server (after caching and defining them in code) but the value comes
out to be blank for all the results.

Could any one please tell me what else is required to be done to make
this work ? Or anything wrong I am doing ?

Any help would highly be appreciated.

Thanks in advance.

"abbott" <anonymous@discussions.microsoft.com> wrote in message news:<1935e01c41c44$d5c55610$a301280a@phx.gbl>...
> I have got some examples from the platform SDK , but it
> can not work at all. Have you got it and have the program
> passed the compile? if you have , would you please tell me
> how, Thanks!
>
>

Stu

2004-04-07, 9:52 am

> Could any one please tell me what else is required to be done to make
> this work ? Or anything wrong I am doing ?


A bit of lateral thinking:
Could you have a dir for each language? then you could easily limit the
scope of the query to target a specific locale or language.

Any help?

Cheers
Stu


Sheetal Mahajan

2004-04-08, 1:46 am

Yes. I am having a dir for each language, one for Greek and other for
chinese. And in the scope I have tried giving each one by one but
again no luck !Everytime the result count is same.

-Sheetal

"Stu" <saet@steh.szerg> wrote in message news:<utHSDYKHEHA.2668@TK2MSFTNGP10.phx.gbl>...
>
> A bit of lateral thinking:
> Could you have a dir for each language? then you could easily limit the
> scope of the query to target a specific locale or language.
>
> Any help?
>
> Cheers
> Stu

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com