after dmm.stopJob(batcher);:
out.close();
Also, surround your listener code in a synchronized(out) {...} block so the
threads won't overwrite each other as they write to the stream. Remember, your
listener code is going to run in 10 threads in parallel, so your code in the
listener needs to be thread-
hat you need? If not, could you help describe your requirements
in more detail?
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklogic.com
Cell: +1 801 706 9731
www.marklogic.com<http://www.marklogic.com>
This e-mail and any accompanying attachments are confidential. The information
Vikas,
I'm sorry I can't answer on MLCPBean. But I think the more supported way to do
this is using the Data Movement
SDK<https://developer.marklogic.com/learn/data-movement-sdk>. Have you looked
at that?
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklogic.com
Ce
com/guide/java/data-movement#id_26583>
docs.marklogic.com
MarkLogic is the only Enterprise NoSQL Database
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklogic.com
Cell: +1 801 706 9731
www.marklogic.com<http://www.marklogic.com>
This e-mail and any accompanying
?
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklogic.com
Cell: +1 801 706 9731
www.marklogic.com<http://www.marklogic.com>
This e-mail and any accompanying attachments are confidential. The information
is intended solely for the use of the individual to whom it is add
I should point out that this is not the fastest way to do it. A faster way
would be to index "date-taken" as a dateTime element range index and use
cts:search with cts:element-range-query.
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklogic.com
Cell: +1 80
te[fn:days-from-duration(fn:current-date() - date-taken) > (365 * 2)])
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklogic.com
Cell: +1 801 706 9731
www.marklogic.com<http://www.marklogic.com>
This e-mail and any accompanying attachments are confidential. The infor
3
The source documents can be read from a staging area containing at least the
uri and the up-to-date hashcode for each document. This will reduce the read
load on the source system to only documents found to be missing from MarkLogic
or updated from what is in MarkLogic.
Sam Mefford
Senior
d take no more than 15 minutes. Once your logging framework
is configured with slf4j, you should be able to see and manage logging from the
Java-client API. This is especially important for long-running QueryBatcher and
WriteBatcher jobs.
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam
Consider sending the curl output with -v
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklogic.com<mailto:sam.meff...@marklogic.com>
Cell: +1 801 706 9731
www.marklogic.com<http://www.marklogic.com>
This e-mail and any accompanying attachments are confidential. The
Can you give some context as to what "a better way" should do better than your
solution?
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklogic.com
Cell: +1 801 706 9731
www.marklogic.com<http://www.marklogic.com>
This e-mail and any accompanying attachments
I think you need to add "return" before
parseFlights(resp);
in the getFlightsInAir function.
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklogic.com<mailto:sam.meff...@marklogic.com>
Cell: +1 801 706 9731
www.marklogic.com<http://www.marklogic.com>
Have you looked at using a transform? Here's an example from the
docs<https://docs.marklogic.com/guide/mlcp/import#id_17589> that converts from
binary to XML, so I'm guessing you can convert from XML to JSON.
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklog
the Data Movement SDK is also available via the Early Access program or via
github: https://github.com/marklogic/java-client-api/tree/4.0.0-EA4
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklogic.com
Cell: +1 801 706 9731
www.marklogic.com<http://www.marklogic.com>
I'm sure you could find a way. But using mlcp in a Java application is not a
supported usage. mlcp is designed to run at the command-line.
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklogic.com
Cell: +1 801 706 9731
www.marklogic.com<http://www.marklogic.com>
This
Can you share more details about what you've tried and how you've verified that
it's not working?
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklogic.com
Cell: +1 801 706 9731
www.marklogic.com<http://www.marklogic.com>
This e-mail and any accompanying attac
of the fastest options for
you since the answers come directly out of the in-memory range indexes.
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklogic.com<mailto:sam.meff...@marklogic.com>
Cell: +1 801 706 9731
www.marklogic.com<http://www.marklogic.com>
This e-mai
et first.
I have written more advanced transforms in the past that can merge all
dependencies whenever the last one arrives, but that's only necessary when you
can't find a way to just load the first set first.
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklogic.com<
To do this I think you'll need a custom snippeting
function<https://docs.marklogic.com/guide/search-dev/query-options#id_61707>
with custom
highlighting<https://docs.marklogic.com/guide/search-dev/highlight#id_79734>.
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@m
model and
application data model?
* does the trade-store require any advanced server-side rules at index time
/ query time?
* if so, are there features that will help implement those rules
* etc., etc.
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklog
ontentAs(String.class);
System.out.println("docContents=[" + docContents + "]");
}
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklogic.com<mailto:sam.meff...@marklogic.com>
Cell: +1 801 706 9731
www.marklogic.com<http://www.marklogic.com>
ent("value");
w.writeAttribute("type", "string");
w.writeStartElement("json-property");
w.writeCharacters("affiliation");
w.writeEndElement();
w.writeEndElement();
w.writeEndElemen
I answered this question on Stack Overflow:
http://stackoverflow.com/a/34206432/3582140http://stackoverflow.com/a/34206432/3582140
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklogic.com
Cell: +1 801 706 9731
www.marklogic.com<http://www.marklogic.com>
This e-mail a
.
In my experience, don't use an NLP tool if you can solve the problem with a
simple regex.
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklogic.commailto:sam.meff...@marklogic.com
Cell: +1 801 706 9731
www.marklogic.comhttp://www.marklogic.com
This e-mail and any accompanying
immediately:
Document results = queryMgr.search(query, new DOMHandle()).get();
NodeList extracts = results.getElementsByTagNameNS(*, extracted);
for (int i=0; i extracts.getLength(); i++ ) {
Node extract = extracts.item(i);
}
Sam Mefford
Senior Engineer
This use case looks perfect for what Erik is describing, using
search:document-query. Your application can add that directly as part
of the structured query so there's no need for a constraint.
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklogic.com
Cell: +1 801 706 9731
book.
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklogic.commailto:sam.meff...@marklogic.com
Cell: +1 801 706 9731
www.marklogic.comhttp://www.marklogic.com
This e-mail and any accompanying attachments are confidential. The information
is intended
solely for the use
-optiondescending/facet-option
/range
/constraint
...
/options
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklogic.commailto:sam.meff...@marklogic.com
Cell: +1 801 706 9731
www.marklogic.comhttp://www.marklogic.com
This e-mail and any accompanying attachments are confidential
ValuesHandle());
for (CountedDistinctValue value : values.getValues() ) {
String textValue = value.get(xs:string, String.class);
System.out.println(textValue + + value.getCount());
}
}
}
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff
Group_idGroup1/Group_id
NameMark/Name
Project
NameProject1/Name
/Project
/User
User
Id2/Id
Group_idGroup2/Group_id
NameLisa/Name
Gallery
album_Id1/album_Id
Album_NameMyalbum1/Album_Name
/Gallery
/User
Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff
?
--
Sam Mefford
Avalon Consulting, LLC
(801) 706-9731
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general
, but I see no way to limit the matching only to direct children. Thus I'm
matching TITLE tags that are children of descendant TABLE tags, rather than
only match the direct-child INFO-OBJ/TITLE tags I want.
Any ideas?
Sam Mefford
sam.meff...@marklogic.com
801-706-9731
: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Sam Mefford
Sent: Friday, September 17, 2010 10:21 AM
To: General Mark Logic Developer Discussion
Subject: [MarkLogic Dev General] Support for direct-child queries?
I have a need to retrieve relevance
33 matches
Mail list logo