Xpath result nodes not returned in document order
An XPath expression over a mixed text element does not return the result nodes in document order (see example below). I am using dbxml 2.3.0.
let $x := <a>this <i>is</i> <b>mixed</b> text</a>
return $x/node()}
dbxml> query {let $x := <a>this <i>is</i> <b>mixed</b> text</a> return $x/node()}
4 objects returned for eager expression 'let $x := <a>this <i>is</i> <b>mixed</b> text</a>
return $x/node()'
dbxml> print
<i>is</i>
<b>mixed</b>
this
text
To improve formatting :
An XPath expression over a mixed text element does not return the result nodes in document order (see example below). I am using dbxml 2.3.0.
let $x := <a1>this <a2>is</a2> <a3>mixed</a3> text</a1>
return $x/node()
dbxml> print
<a2>is</a2>
<a3>mixed</a3>
this
text
Similar Messages
-
Search does not return my documents
Hi Gurus,
I have created few documents using CM SDK. I could able to see these documents using IFS browser.
Now I wrote content search method to search document content.When I search for "cmsdk" string it returns 13 documents.But when I search for a string in the document, I created , for example a text like "struts" it does not return any result , though this document I can see in IFS browser.What could be the reason?.
BTW I didn't create any FORMAT type while I am storing the document. Can any one point me to a document where I can find some instructions on "must and should things to do before search".
I am using CM SDK 9.0.3.
Thanks in advance.
Giri.have you set the indexing on?
-
Bing based federated result sources not returning any results for non-English languages
I have a result source with this query:
http://www.bing.com/search?q={?searchterms} language:fr site:msdn.microsoft.com&format=rss&count=50&first={startIndex}
This used to give me 40-50 results for common terms like download, blog etc.
From today (7/14) IST, this source does not return any results. There are no results if I execute this query directly in IE either.
Same behavior observed for: language:es, language:de etc.
I do however get results as expected for language:en.
Any idea what the issue might be?Hi Swapnil,
According to your description, my understanding is that no results returned when searching with non-English in the Result Source query.
I tested the same scenario per your post and I got the same results as you got.
I recommend to change the language:fr in the Result Source query to be lang=fr to see if the issue still occurs.
More references:
http://kbdump.com/sharepoint-2013-opensearch-search-twitter-facebook-wikipedia-page/
http://richardstk.com/2013/11/08/sharepoint-2013-federated-search-to-bing/
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
FM module not returning the document number
Hi all,
I am using FM PRELIMINARY_POSTING_FB01 to park a document, it's working perfectly fine and I am able to park the document as well but at the end of the FM it's not returning me the document number, so can you please tell me how can I get the document number which I parked using this FM at the end of the program.
Thanks,
Rajat GargHi, Can you please expalin a little more, This is what I am passing:
call function 'PRELIMINARY_POSTING_FB01'
exporting
i_tcode = 'FV60'
I_XCMPL = 'X'
I_TCODE_INT = 'FV60'
IMPORTING xepbbp = l_xepbbp
tables
t_bkpf = lt_bkpf
t_bseg = lt_bseg
t_bsec = lt_bsec
t_bset = lt_bset
t_bsez = lt_bsez
exceptions
error_message = 1.
p_return-id = sy-msgid.
p_return-type = sy-msgty.
p_return-number = sy-msgno. -
Search not returning some documents from document library
Hi
I have a situation where I have five documents in DL,While searching I was not able to find one of the document.
1440-20-IC-DG-6011.dwg is the document which does not came in search.
If search as
'1440-20-IC', It came.
'1440-20-IC-DG' or '1440-20-IC-DG-6011', It doesn't.
'1440-20-IC-DG-6011.dwg' or '1440-20-IC-DG-6011*', it came.
For information - Using Content type hubs, Content organizer rules.Hi Shubhr,
According to your description, my understanding is that you cannot search the document when searching with ‘1440-20-IC-DG-6011’.
Was this document a .dwg file and was the name of the document ‘1440-20-IC-DG-6011’?
If yes, when we search with ‘1440-20-IC-DG-6011’, the document will appear in the search result; but if we search with ‘1440-20-IC-DG-6011.dwg’, it will not display in the search result.
I recommend to upload a new document with a similar name to see how the search works.
I tested the same scenario in my environment, if I searched with ‘1440-20-IC’ or
‘1440-20-IC-DG-6011’, it will appear in search result; if I searched with ‘1440-20-IC-DG’ or
‘1440-20-IC-DG-6011.dwg’, it will not appear in search result. Per my test, SharePoint will extract the first three part which is connected with ‘-’ and the full name of the document
as indexes, then when we search with ‘1440-20-IC’ or ‘1440-20-IC-DG-6011’, the document will appear in search result.
The '*' is used as wild search in SharePoint, when the string before '*' matches, no matter what the following part is the document will display in the search result.
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
Hi,
Am using the listdata.svc to access and update Sharepoint list.
When i do the folowing query
listdata.svc/ModuleItems?$inlinecount=allpages&$filter=substringof(%2781514db7-b340-478d-cf4e-d4ac608822e8%27,ReferenceID)&$orderby=ContentType,Created%20desc&$top=250
It returns the results as if it was only filtering by the Created field and ignores the ContentType Filter.
Seems like a bug to me.Hi Mitchell,
I made a test in my environment with the URL below and it sort for the both field.
https://xxx/_vti_bin/ListData.svc/List5?$select=Title,Test1&$orderby=Title,Test1
I suggest you create a simple rest url to query and sort item to test whether it works.
More information for your reference:
http://msdn.microsoft.com/en-us/library/ff798339.aspx
http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api
Best Regards
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Zhengyu Guo
TechNet Community Support -
When I'm trying to go to the last record of a BC4J viewObject this is the output I get in the console.
insert** id=66, parid=-3, collid=0, keyArr.len=1, cont.len=705
[544] stmt: begin insert into "PS_STBC4JModule" values (:1, :2, :3, empty_blob(), empty_blob()) returning content, keycont into :4, :5; end;
[545] stmt: update "PS_STBC4JModule" set content=:1, keycont=:2 where collid=:3 and id=:4
[546] stmt: delete "PS_STBC4JModule_ky" where collid=:1 and id=:2
[547] stmt: insert into "PS_STBC4JModule_ky" values (:1, :2, :3, :4)
[548] **insert** id=67, parid=-3, collid=0, keyArr.len=1, cont.len=705
[549] stmt: begin insert into "PS_STBC4JModule" values (:1, :2, :3, empty_blob(), empty_blob()) returning content, keycont into :4, :5; end;
[550] stmt: update "PS_STBC4JModule" set content=:1, keycont=:2 where collid=:3 and id=:4
[551] stmt: delete "PS_STBC4JModule_ky" where collid=:1 and id=:2
[552] stmt: insert into "PS_STBC4JModule_ky" values (:1, :2, :3, :4)
[553] **insert** id=68, parid=-3, collid=0, keyArr.len=1, cont.len=705
[554] stmt: begin insert into "PS_STBC4JModule" values (:1, :2, :3, empty_blob(), empty_blob()) returning content, keycont into :4, :5; end;
[555] stmt: update "PS_STBC4JModule" set content=:1, keycont=:2 where collid=:3 and id=:4
[556] stmt: delete "PS_STBC4JModule_ky" where collid=:1 and id=:2
[557] stmt: insert into "PS_STBC4JModule_ky" values (:1, :2, :3, :4)
[558] **insert** id=69, parid=-3, collid=0, keyArr.len=1, cont.len=705
[559] stmt: begin insert into "PS_STBC4JModule" values (:1, :2, :3, empty_blob(), empty_blob()) returning content, keycont into :4, :5; end;
[560] stmt: update "PS_STBC4JModule" set content=:1, keycont=:2 where collid=:3 and id=:4
[561] stmt: delete "PS_STBC4JModule_ky" where collid=:1 and id=:2
[562] stmt: insert into "PS_STBC4JModule_ky" values (:1, :2, :3, :4)
[563] **insert** id=70, parid=-3, collid=0, keyArr.len=1, cont.len=705
[564] stmt: begin insert into "PS_STBC4JModule" values (:1, :2, :3, empty_blob(), empty_blob()) returning content, keycont into :4, :5; end;
[565] stmt: update "PS_STBC4JModule" set content=:1, keycont=:2 where collid=:3 and id=:4
[566] stmt: delete "PS_STBC4JModule_ky" where collid=:1 and id=:2
[567] stmt: insert into "PS_STBC4JModule_ky" values (:1, :2, :3, :4)
[568] **insert** id=-3, parid=-2, collid=0, keyArr.len=-1, cont.len=1449
[569] stmt: begin insert into "PS_STBC4JModule" values (:1, :2, :3, empty_blob(), null) returning content into :4; end;
[570] stmt: update "PS_STBC4JModule" set content=:1 where collid=:2 and id=:3
[571] stmt: delete "PS_STBC4JModule_ky" where collid=:1 and id=:2
[572] stmt: insert into "PS_STBC4JModule_ky" values (:1, :2, :3, :4)
[573] **insert** id=71, parid=-4, collid=0, keyArr.len=1, cont.len=705
[574] stmt: begin insert into "PS_STBC4JModule" values (:1, :2, :3, empty_blob(), empty_blob()) returning content, keycont into :4, :5; end;
[575] stmt: update "PS_STBC4JModule" set content=:1, keycont=:2 wher
It seems the application is trying to return all of the rows, when I only want it to return the last row. Please help this is an urgent matter.
JeffJeff:
You're getting these passivation messages because you have a lot of rows in your RowSet, and you're trying to locate the last row. In this case, yes it will try to traverse all rows until it reaches the end.
Further if you have a lot of rows, we will start spilling rows into database, thus producing these messages on PS_ tables.
There are a few different ways to avoid this.
1. Usually, if you need to locate the last row quickly, you should specify an order-by clause to do descending sort (or something like that) so that you can locate the desired row quickly.
2. Or, you can adjust where-clause to reduce the number of rows.
3. If you want to turn off spill-to-disk (so that you avoid DML interactions with PS_ tables), you can do that through configuration. Please take a look at
http://otn.oracle.com/products/jdev/htdocs/bc4j/bc4j_temp_tables.html
Thanks.
Sung -
Validator not returning the results.
Hi All,
I have extended the StringValidator class in order the create a username validator. When a new user is being registered, the username is validated on the server to check if it exists.
The code is not throwing errors and i know the remoteobject calls work. The push sets the message, but the problem is that the result is not returned.
Is the flow correct?
public class PosUsernameValidator extends StringValidator {
private var userServiceRO:RemoteObject = new RemoteObject();
private var validatorResults:Array = new Array();
public function PosUsernameValidator(){
super();
userServiceRO.destination = "UserService";
userServiceRO.getUserByUserName.addEventListener("result", getUserByUserNameRH);
userServiceRO.getUserByUserName.addEventListener("fault", getUserByUserNameFH)
override protected function doValidation(value:Object):Array {
validatorResults = super.doValidation(value);
return doForUserName(value);
private function doForUserName(value:Object):Array{
userServiceRO.getUserByUserName(String(value));
return validatorResults;
private function getUserByUserNameRH(r:ResultEvent, t:Object = null):void{
var user:User = r.result as User;
if(user!=null){
validatorResults.push(new ValidationResult(true, null, "Username error","Username already taken!"));
private function getUserByUserNameFH(f:FaultEvent, t:Object = null):void{
Alert.show(ObjectUtil.toString(f));At first glance I would say that trying to combine your client-side and server-side validation into a single class like that is not a good idea. In doForUserName() you are making an asyncronous server call. The validatorResults will get returned immediately, so by the time your handler method executes it is already too late. Rather than trying to do both sets of validation at once, remove the server-side code from this class and use it as a normal flex validator. Then in your component (or better yet in your controller class if you follow an MVC pattern) call your service method after the client side validator returns a valid result.
-
Bulk editor is not returning values for default properties
..even though the content nodes have a value for this property. CQ version is 5.5.
I need to export a report of all user generated content from /content/usergenerated/content/<sitename>/en. This is the root path.
The query parameter I have specified is "type:Rating". By default the "sling:resourceType" is selected. No other custom properties are specified in the interface.
The search returns the nodes of this type, but the results do not return a value for the "sling:resourceType" for these nodes.It should work. Might be you do not have data. Is the results shown as zero records?
-
Sequence does not match type document()
Hi all,
I am having a problem with building a query - maybe one of you can point out my mistake!
First of all I have a sequence of nodes in the variable '$__mpqfEngineVar_13' which are built in a FLWOR using the following construct:
<engine:document ID='{'NoID'}' recordNumber='{0.0}' Rank='{0.0}' Score='{$__mpqfEngineVar_8}'>{$__mpqfEngineVar_1}</engine:document>
I am trying to filter out those which have a specific value in a descendant node (actually present inside the tree $__mpqfEngineVar_1 from above):
$__mpqfEngineVar_15 := ($__mpqfEngineVar_13[/mpeg7:FamilyName = $__mpqfEngineVar_14])
However I get the following error message:
Sequence does not match type document() - found item of type element({urn:dimis:mpqfQueryEngine:schema:2009}document, {http://www.w3.org/2001/XMLSchema}untyped)
If I use the following relative path instead (which is not an option since the path is user define) it actually works (notice the '*')....
*//mpeg7:FamilyName
Any ideas what I am doing wrong? Honestly I can't really see the semantic difference..
Thanks for your help,
AlexHi Alex,
The expression "//mpeg7:FamilyName" is an abbreviated XQuery step that expands to this:
root() treat as document-node()/descendant-or-self::node()/mpeg7:FamilyNameThis shows you why you're getting an error about the root node not being a document node.
I expect that the expression you really want is ".//mpeg7:FamilyName" - the "." prefix makes it a relative path rather than an absolute path.
John -
Document() not returning a useable node set?
If I open another document during a transform, I can dump out the file using
xsl:message, but can't match any tags in the loaded file. If I replace the Sun
implementation with the apache implementation of xalan with -Xbootclasspath/p,
the code runs fine.
Example fragment:
<xsl:variable name="user_type">
<xsl:for-each select="//include/@file_name">
<xsl:variable name="xmlFile">
<xsl:value-of select="$xml_dir"/>/<xsl:value-of select="."/>
</xsl:variable>
<xsl:for-each select="document($xmlFile)" >
<xsl:value-of select="key('type_def_key',$datatype)//datatype" />
</xsl:for-each>
</xsl:for-each>
</xsl:variable>
<xsl:message>
User type <xsl:value-of select="$user_type" /> for <xsl:value-of select="$datatype" />
</xsl:message>
I believe the problem is with the document function not returning a useable
node set , or all of the matches are going back to the original document rather
than the one that was just open. With in the context of the new document
select="." appears to work, but nothing else seems to.
Output using Sun's xml implementation (JDK 5.0, 6.0 snapshot)
User type for Gms_User_Id
Output using the Apache xml implmentation (Xalan 2.6)
User type numeric for Gms_User_Id
The code and xml files are the same in both cases, just changed the runtime
class path withThis is behaving as designed.
Configuring a view object so expect certain entity subtypes does not automatically restrict the rows it queries. If the view object's query returns any row that has a discriminator value that does not match the design-time configured entity subtypes expected, it is not added to the result rowset.
If you have limited the number of fetched rows to 1, and if that row had a discriminator attribute value that does not match that/those of the expected entity subtypes, then the single row returned by the query will not be added to the result rowset. The result is that the row set has zero rows in it. -
Content scope document library does not return result for non farm administrator
Hi
I have a situation where I had to go with a unique permission applied subsite to store 1000 documents in the document library. This site has a set of 50 users. I was able to create content scope and library path for search. It returns results for me(creator/owner/administrator)
however if I add other users as contributor or full permission, even after full crawling it does not return result for others.
I saw some article that security broken site wont be indexed normal way and to include and I did that as well but no result for other users. I always get result.
Please suggest if there are any specific security permissions that I need to include, so the document library target search will return result for others.
Thanks
ShriHi Shri,
For administrator search results, it looks like the documents could be crawled and searched.
For other users you grant full control permission on subsite with unique permission where you store 1000 dcouments in document library, please make sure these 50 users have access permission(at least view permission) on documents from the
library, then test again.
Also test if users search on search center site without search scope, see if it's scope issue or search web part issue.
If above doesn't work, please check ULS log for related useful information around the time when users search the documents, there should be more info to verify if issue is related to unique permision.
Thanks,
Daniel Yang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Replenishment - Msg WT134: Store order processing did not return any result
During the Replenishment run using TCODE: WRP1 following error is being encountered
<b>Msg WT134: Store order processing did not return any result</b>
The error is reported when more than 9 articles are being used.impelemented the oss note: 979935
-
Fuzzy search not returning results?
I'm executing a phonetic search on the nm_resource column. my application allows a call center employee to search on the resource name (nm_resource), if the resource is not found then they will enter a new one. The problem is someone may have already entered the resource name but spelled it incorrectly resulting in duplicate records for the same resource name. To enable the call center to retrieve records that may have the same sound but are spelled differently we have implemented the fuzzy search capability of Oracle text. Things have been going very nicely for the most part with the exception of this one issue we're trying to understand.
Using the query below we're searching for the resource name "rosies" the actual record in the database was entered as "rosy's". the search returns (rosies,rosie's,rosys) and does not return ---> rosy's <--- the record i'm interested in
it is reasonable to expect rosy's to be returned in the result set? my query should retunn the max fuzzy expansions and all fuzzy scores.
select score(1), nm_resource, ADDR_RSRC_ST_LN_1, id_resource, ADDR_RSRC_CITY FROM caps_resource where
CONTAINS (nm_resource,'fuzzy(rosies, 0, 5000, weight)',1)>0
union
select /*+index(caps_resource ind_caps_resource_8)*/ 10, nm_resource, ADDR_RSRC_ST_LN_1, id_resource, ADDR_RSRC_CITY from caps_resource
where NM_RESOURCE_UPPER like upper(replace(replace('%' || 'rosies' || '%',' '), '-'))
and rownum<500 order by 1 DESC;
any help explaining this is much appriciated.
Regards,When you index "Rosy's", by default it sees the apostropohe as a delimiter and tokenizes and indexes "Rosy" and "s" separately. So, you could only find it by searching the singular form or the singular form obtained by using stemming. However, if you set the apostrophoe as a skipjoin, then it tokenizes and indexes "Rosys" as one token that you can then search for that using "rosies":. Please see the demonstration below. You might also be interested in soundex, which can be used with Oracle Text, or the functions in the utl_match package or metaphone.
SCOTT@orcl_11g> CREATE TABLE caps_resource
2 (nm_resource VARCHAR2 (30))
3 /
Table created.
SCOTT@orcl_11g> INSERT ALL
2 INTO caps_resource VALUES ('Rosy''s')
3 SELECT * FROM DUAL
4 /
1 row created.
SCOTT@orcl_11g> SELECT * FROM caps_resource
2 /
NM_RESOURCE
Rosy's
SCOTT@orcl_11g> CREATE INDEX your_text_idx ON caps_resource (nm_resource)
2 INDEXTYPE IS CTXSYS.CONTEXT
3 PARAMETERS
4 ('STOPLIST CTXSYS.EMPTY_STOPLIST')
5 /
Index created.
SCOTT@orcl_11g> SELECT token_text FROM dr$your_text_idx$i
2 /
TOKEN_TEXT
ROSY
S
SCOTT@orcl_11g> SELECT * FROM caps_resource
2 WHERE CONTAINS (nm_resource, 'FUZZY (rosies, 0, 5000, weight)') > 0
3 /
no rows selected
SCOTT@orcl_11g> DROP INDEX your_text_idx
2 /
Index dropped.
SCOTT@orcl_11g> BEGIN
2 CTX_DDL.CREATE_PREFERENCE ('your_lexer', 'BASIC_LEXER');
3 CTX_DDL.SET_ATTRIBUTE ('your_lexer', 'SKIPJOINS', '''');
4 END;
5 /
PL/SQL procedure successfully completed.
SCOTT@orcl_11g> CREATE INDEX your_text_idx ON caps_resource (nm_resource)
2 INDEXTYPE IS CTXSYS.CONTEXT
3 PARAMETERS
4 ('STOPLIST CTXSYS.EMPTY_STOPLIST
5 LEXER your_lexer')
6 /
Index created.
SCOTT@orcl_11g> SELECT token_text FROM dr$your_text_idx$i
2 /
TOKEN_TEXT
ROSYS
SCOTT@orcl_11g> SELECT * FROM caps_resource
2 WHERE CONTAINS (nm_resource, 'FUZZY (rosies, 0, 5000, weight)') > 0
3 /
NM_RESOURCE
Rosy's
SCOTT@orcl_11g> -
Ndata not returning all possible results
i created an index with userdatastore, basic lexer and basic wordlist preferences. Also a section group with ndata section. base letter, substring index all are true.
but when i search for 'scri', i am not getting 'de*scri*ption' in the results. pls help.Roger,
Since the original poster has not provided a test case, I threw one together based on the information provided and found a couple of surprising things. The first surprise is that "scri" appears in the indexed tokens, even though a search for it returns no rows. The second surprise is that you do not need to put curly brackets around "not" and "and" when used within ndata like you do with other queries; Just using a stoplist without them is sufficient. Please find my test script and execution below.
-- test script:
drop table table1
exec ctx_ddl.drop_section_group ('mystery_sg')
exec ctx_ddl.drop_preference ('mystery_wl')
exec ctx_ddl.drop_preference ('mystery_lex')
exec ctx_ddl.drop_preference ('mystery_ds')
-- table:
create table table1
(column1 varchar2(60),
indexed_column varchar2(1))
-- test data:
insert all
into table1 values ('description', null)
into table1 values ('this not that', null)
into table1 values ('this and that', null)
select * from dual
-- procedure:
create or replace procedure mystery_proc
(p_rowid in rowid,
p_clob in out nocopy clob)
as
begin
select '<tag1>' || column1 || '</tag1>'
into p_clob
from table1
where rowid = p_rowid;
end mystery_proc;
show errors
-- preferences:
begin
ctx_ddl.create_preference ('mystery_ds', 'user_datastore');
ctx_ddl.set_attribute ('mystery_ds', 'procedure', 'mystery_proc');
ctx_ddl.create_preference ('mystery_lex', 'basic_lexer');
ctx_ddl.set_attribute ('mystery_lex', 'base_letter', 'YES');
ctx_ddl.create_preference ('mystery_wl', 'basic_wordlist');
ctx_ddl.set_attribute ('mystery_wl', 'substring_index', 'true');
ctx_ddl.create_section_group ('mystery_sg', 'basic_section_group');
ctx_ddl.add_ndata_section ('mystery_sg', 'tag1', 'tag1');
end;
-- index:
create index test_idx
on table1 (indexed_column)
indextype is ctxsys.context
parameters
('datastore mystery_ds
lexer mystery_lex
wordlist mystery_wl
section group mystery_sg
stoplist ctxsys.empty_stoplist')
-- tokens created by indexing:
select token_text from dr$test_idx$i
-- queries:
select column1, score(1) from table1
where contains (indexed_column, 'ndata(tag1, scri)', 1) > 0
order by score(1) desc
select column1, score(1) from table1
where contains (indexed_column, 'ndata(tag1, escr)', 1) > 0
order by score(1) desc
select column1, score(1) from table1
where contains (indexed_column, 'ndata(tag1, not)', 1) > 0
order by score(1) desc
select column1, score(1) from table1
where contains (indexed_column, 'ndata(tag1, and)', 1) > 0
order by score(1) desc
/-- execution:
SCOTT@orcl_11gR2> -- table:
SCOTT@orcl_11gR2> create table table1
2 (column1 varchar2(60),
3 indexed_column varchar2(1))
4 /
Table created.
SCOTT@orcl_11gR2> -- test data:
SCOTT@orcl_11gR2> insert all
2 into table1 values ('description', null)
3 into table1 values ('this not that', null)
4 into table1 values ('this and that', null)
5 select * from dual
6 /
3 rows created.
SCOTT@orcl_11gR2> -- procedure:
SCOTT@orcl_11gR2> create or replace procedure mystery_proc
2 (p_rowid in rowid,
3 p_clob in out nocopy clob)
4 as
5 begin
6 select '<tag1>' || column1 || '</tag1>'
7 into p_clob
8 from table1
9 where rowid = p_rowid;
10 end mystery_proc;
11 /
Procedure created.
SCOTT@orcl_11gR2> show errors
No errors.
SCOTT@orcl_11gR2> -- preferences:
SCOTT@orcl_11gR2> begin
2 ctx_ddl.create_preference ('mystery_ds', 'user_datastore');
3 ctx_ddl.set_attribute ('mystery_ds', 'procedure', 'mystery_proc');
4 ctx_ddl.create_preference ('mystery_lex', 'basic_lexer');
5 ctx_ddl.set_attribute ('mystery_lex', 'base_letter', 'YES');
6 ctx_ddl.create_preference ('mystery_wl', 'basic_wordlist');
7 ctx_ddl.set_attribute ('mystery_wl', 'substring_index', 'true');
8 ctx_ddl.create_section_group ('mystery_sg', 'basic_section_group');
9 ctx_ddl.add_ndata_section ('mystery_sg', 'tag1', 'tag1');
10 end;
11 /
PL/SQL procedure successfully completed.
SCOTT@orcl_11gR2> -- index:
SCOTT@orcl_11gR2> create index test_idx
2 on table1 (indexed_column)
3 indextype is ctxsys.context
4 parameters
5 ('datastore mystery_ds
6 lexer mystery_lex
7 wordlist mystery_wl
8 section group mystery_sg
9 stoplist ctxsys.empty_stoplist')
10 /
Index created.
SCOTT@orcl_11gR2> -- tokens created by indexing:
SCOTT@orcl_11gR2> select token_text from dr$test_idx$i
2 /
TOKEN_TEXT
^ad$
^an$
^and
^dec
^des
^dsc
^esc
^hat
^his
^nd$
^no$
^not
^nt$
^ot$
^tat
^tha
^thi
^ths
^tht
^tis
and$
cipt
crip
crit
crpt
decr
desc
desr
dscr
ecri
esci
escr
esri
hat$
his$
ion$
ipio
ipti
ipto
itio
not$
pion
ptin
ptio
pton
ripi
ript
riti
rpti
scip
scri
scrp
srip
tat$
tha$
that
thi$
this
ths$
tht$
tin$
tio$
tion
tis$
ton$
65 rows selected.
SCOTT@orcl_11gR2> -- queries:
SCOTT@orcl_11gR2> select column1, score(1) from table1
2 where contains (indexed_column, 'ndata(tag1, scri)', 1) > 0
3 order by score(1) desc
4 /
no rows selected
SCOTT@orcl_11gR2> select column1, score(1) from table1
2 where contains (indexed_column, 'ndata(tag1, escr)', 1) > 0
3 order by score(1) desc
4 /
COLUMN1 SCORE(1)
description 60
1 row selected.
SCOTT@orcl_11gR2> select column1, score(1) from table1
2 where contains (indexed_column, 'ndata(tag1, not)', 1) > 0
3 order by score(1) desc
4 /
COLUMN1 SCORE(1)
this not that 100
1 row selected.
SCOTT@orcl_11gR2> select column1, score(1) from table1
2 where contains (indexed_column, 'ndata(tag1, and)', 1) > 0
3 order by score(1) desc
4 /
COLUMN1 SCORE(1)
this and that 100
1 row selected.
SCOTT@orcl_11gR2>
Maybe you are looking for
-
Column int_objname empty after register schema
Hi all, We have come across a very strange feature in our XDB repository (RDBMS 10.2.0.2 EE) and I hope someone can give a hint to solve it. In the past we registered xml schemas and worked with it with success. The schemas are local. Now, we're impl
-
ImageIcon vs. BufferedImage
I'm making an applet that will be using a fair number of transparent gifs (a total of ~5-20 megs), and don't know which type of image object would be best suited. Each image will only be a few kilobytes in size and only a few of them need to be displ
-
SDHC Card - Change the Order of Files
I been trying to find a solution, so far unsuccessfully, to try to force the alphabetization of files and folders on a FAT SDHC Card. The memory card is used in a portable music player and when I add new files to the card the newly addded files show
-
Disconnected portable HD - Removed song names still remain in iTunes
There was a portable HD connected to my computer for some time that had additional music on it from what is actually on my computer. After removing the portable HD, the song names for all the songs that were on the portable... still remain in my itun
-
I have a mapping that compiles but produces a run-time error: BATCH MERGE ORA-00918: column ambigiously defined I've traced it to this section of the code: MERGE INTO "GXP_LOCATION" USING (SELECT /*+ NO_MERGE*/ <snip> FROM "DW_GXP_LOCATIONS"@"GPDW" "