[MarkLogic Dev General] Query on multiple language using search api

2012-08-16 Thread amit gope
Hello All,

Can anyone please help me out queering on multiple languages using search
api. In my database i have documents of different languages (en, de, fr) to
name a few. Currently when i do not provide any language specification it
returns me contents from only english. How do i mention the language
constraint to include the search for languages de and fr as well?


Regards
Amit
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Natural language version of a query?

2012-08-16 Thread Geert Josten
Hi Tim,

There is a grammar option in search:search options, but haven't looked
into that myself yet. Perhaps the documentation can make clear whether you
can use that or not.

Alternative is to pre-process the search query yourself. You can try to
tackle it with regex, but it might be more fun to write a grammar for it
and use the handy site maintained by Gunther Rademacher to generate XQuery
code out of it:

http://www.bottlecaps.de/rex/

Kind regards,
Geert

-Oorspronkelijk bericht-
Van: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] Namens Tim Finney
Verzonden: woensdag 15 augustus 2012 23:29
Aan: general@developer.marklogic.com
Onderwerp: [MarkLogic Dev General] Natural language version of a query?

Hi All,

Has anyone here tried to produce a natural language equivalent of a search
string or the kind used in search:search? As an example, here is an
imaginary search string:

cat OR dog (author:Smith, John OR author:Jones, Thomas)
date-after:1984-03-01 date-before:1991-05-31

I'd like to end up with something like this:

cat OR dog with authors Smith, John OR Jones, Thomas AND after
1984-03-01 AND before 1991-05-31

(Things are complicated by parentheses, NEAR, NOT, ...)

Are there any built-in functions for doing such a thing?

Best,

Tim Finney



___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Query on multiple language using search api

2012-08-16 Thread Geert Josten
Hi Amit,



Haven’t tried, but you should be able to add
term-optionlang=en/term-optionterm-optionlang=de/term-optionterm-optionlang=fr/term-option
to the relevant constraint..



Kind regards,

Geert



PS: I’m wondering whether it would also accept lang=en,de,fr, but the docs
don’t seem to indicate so..



*Van:* general-boun...@developer.marklogic.com [mailto:
general-boun...@developer.marklogic.com] *Namens *amit gope
*Verzonden:* donderdag 16 augustus 2012 8:12
*Aan:* general@developer.marklogic.com
*Onderwerp:* [MarkLogic Dev General] Query on multiple language using
search api



Hello All,

Can anyone please help me out queering on multiple languages using search
api. In my database i have documents of different languages (en, de, fr) to
name a few. Currently when i do not provide any language specification it
returns me contents from only english. How do i mention the language
constraint to include the search for languages de and fr as well?


Regards
Amit
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] Local-disk forest failover

2012-08-16 Thread Danny Sinang
Hi,

When a local-disk failover happens, will the replica forest (which just
became the primary forest) need to reindex ?

Also, will the surviving cluster node try to replicate the new forest to
some other cluster members  ?

Regards,
Danny
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Local-disk forest failover

2012-08-16 Thread Michael Blakeley
No on both questions. Forest replication is just like RAID-1. You set up the 
mirrors, and they are exact copies.

This underscores the importance of monitoring. You want to find out about a 
forest failure immediately - not weeks later, when the replica fails and the 
whole database goes offline.

-- Mike

On 16 Aug 2012, at 08:00 , Danny Sinang wrote:

 Hi,
 
 When a local-disk failover happens, will the replica forest (which just 
 became the primary forest) need to reindex ?
 
 Also, will the surviving cluster node try to replicate the new forest to some 
 other cluster members  ?
 
 Regards,
 Danny
 
 
 ___
 General mailing list
 General@developer.marklogic.com
 http://developer.marklogic.com/mailman/listinfo/general

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Local-disk forest failover

2012-08-16 Thread Wayne Feick
A slight refinement; replicas are equivalent copies rather than exact copies. 
You'll have the same fragments, but likely organized differently into stands.

Wayne


Michael Blakeley m...@blakeley.com wrote:


No on both questions. Forest replication is just like RAID-1. You set up the 
mirrors, and they are exact copies.

This underscores the importance of monitoring. You want to find out about a 
forest failure immediately - not weeks later, when the replica fails and the 
whole database goes offline.

-- Mike

On 16 Aug 2012, at 08:00 , Danny Sinang wrote:

 Hi,

 When a local-disk failover happens, will the replica forest (which just 
 became the primary forest) need to reindex ?

 Also, will the surviving cluster node try to replicate the new forest to some 
 other cluster members  ?

 Regards,
 Danny


 ___
 General mailing list
 General@developer.marklogic.com
 http://developer.marklogic.com/mailman/listinfo/general

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] Version of MarkLogic HTTP operations

2012-08-16 Thread Daniel S. Smith (ICS)
It looks like the MarkLogic HTTP operations (e.g. xdmp:http-get) are using 
HTTP/1.0

Is HTTP/1.1 supported?

This request:

xdmp:http-get('http://www.marklogic.com')

Generates this:

GET / HTTP/1.0
From: u...@example.com
User-Agent: MarkLogic
Host: www.marklogic.comhttp://www.marklogic.com

Thanks,

-Dan Smith
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Local-disk forest failover

2012-08-16 Thread Jason Hunter
On Aug 16, 2012, at 8:00 AM, Danny Sinang wrote:

 When a local-disk failover happens, will the replica forest (which just 
 became the primary forest) need to reindex ?

No.  It will already be indexed and ready to go.

 Also, will the surviving cluster node try to replicate the new forest to some 
 other cluster members  ?

No.  The only replication that happens is that which is configured.  You could 
script up whatever actions you wanted, of course.

-jh-

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general