nosql - Can MarkLogic search flat text files? (i.e. txt, tsv, csv) -
i understand marklogic
designed data wrapped in xml.
i loaded txt file data delimited tabs , have been trying word search on database loaded txt
file in way possible.
i tried using search:search
xquery
function using query console
result gives me first occurrence of search keyword. think marklogic
thinking whole txt
file wrapped in 1 xml
tag.
i able search flat text file , search results similar google search results page. possible? how? or marklogic
expect data in xml
format?
marklogic can manage content in xml, json, binary, or text.
how did load data? tab delimited .csv type file, i'd suggest loading content pump http://docs.marklogic.com/guide/ingestion/content-pump#id_70366
a .csv file export relational table or excel. in case, rows become individual documents in marklogic. description, sounds document loaded in entirety, , not broken down individual documents. easy enough verify in query console if click 'explore' button, should see multiple uris. if see 1 document loaded, know doc loaded in entirety single document, , that's why 1 result search.
yes, can google style search results marklogic. may want take @ appbuilder, generate search app google style results , provides google style grammar searching. if want roll own, check out snippeting in rest api.
Comments
Post a Comment