Search not returning desired result
I am looking for a message in the Application Server/Portal Applications forum with the title "created new fields in form". I know this is the title because I printed out the message a while back.
I wanted to go back to it to see if any further posts had been made. When I type the title in the search field, I get some hits, but not the message I am looking for.
Can someone else try using the above search string and check to see if it gets returned?
Thanks!
My wife has been having this same problem for at least 6 months (Leopard and Snow Leopard). I tried the "Rebuild" mailbox option, and I have tried adding/removing the User/Library folder from Spotlight privacy to force a re-index. So far nothing. Does anyone have a clue? My wife uses her Mac for work, and searching through e-mail is a common task of hers. This has made her life extremely difficult.
Similar Messages
-
Filter item limits - search not returning any results with large number of elements otherwise ok
Hi,
We are working through a problem we've encountered with Azure Search. We are building a filter string based on an "id eq 'xxx' or id eq 'ccc' or id eq 'vvv' etc. The id's are provided in a collection and we loop through, building the string until it's
ready to apply.
We are using 2015-02-28 preview at the moment.
We are encountering a situation where, after approximately 20 id's Azure Search doesn't return any results, nor does it appear to return any error code. I'm pretty sure that the url length is less than 8K.
Is there any limit on the number of filter elements in a query?We followed up offline.
The symptom in this case was a 200 response with no body. The underlying cause is a URL parsing bug that tries to interpret colons in the query string as the delimiter of a URL scheme (like https:), but with a hard length limit of 1KB. We will work
on a fix for both the underlying URL parsing issue and the issue that caused it to surface as a body-less 200.
In the meantime, the workaround is to put colons as close to the beginning of the URL query string as possible. Specifically, putting $filter and facets first, and putting expressions with colons within those first, will mitigate this in most cases.
Note that the .NET SDK puts $filter and facets near the beginning of the query string by default, so if you're consuming Azure Search you might want to give it a try:
http://www.nuget.org/packages/Microsoft.Azure.Search/ -
Search not returning all results
I'm having a problem with searching a RAID volume on an G5 Xserve running 10.5.7. It doesn't seem to be returning search results correctly. I've tested it by making folders and searching for them over the course of several days, but haven't been able to find them again by file name. I've tried erasing the index file using the mdutil -E, but it hasn't helped. Any one have any ideas?
Hi
http://discussions.apple.com/thread.jspa?messageID=9194446�
Tony -
cm:search is not returning any result when logical operator '!' is used.
<cm:search is not returning any result when logical operator '!' is used.
I am using BEA 9.1 content management services API. When I run the following query I am not receiving any results. Also no error or exceptions are seen in the weblogic or cmspi log.
The query is <cm:search id="docs" query="!(object_name like 'Sport*')" />HI cam
Thanks for your reply, but i found the problem it was because my server administrator password has changed by network guys... and because of it crawler unable to access the content
I wrote my solution here i hope it will help other people
http://bvs-sharepoint.blogspot.com/2015/03/sharepoint-search-is-not-returning.html
RB -
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 -
Directory - Org Unit Listing Not Returning Any Results
Hello Everyone,
We are using Nakisa v4.1 on EHP7.0 at the moment. In the user interface, Directory > Org Unit Listing is not returning any results while Employee and Position Listings are working just fine.
What would be the cause ?
Appreciate your help,
Kind regardsHi,
I am using a live build copied from SAP_Live_RFC.
Below you can find what the cds.log says when I try to search an organizational unit.
2289. 18 Apr 2014 07:05:22 INFO com.nakisa.Logger - ...Request is not required to be verified. For action: setsearch. For processor OrgChartAppEventProcessor
2290. 18 Apr 2014 07:05:22 INFO com.nakisa.Logger - Invoking action:setsearch [ORGUNIT_NAME, contains, deneme]. For processor OrgChartAppEventProcessor. Against controller OrgChartCtr
2291. 18 Apr 2014 07:05:22 INFO com.nakisa.Logger - Strings.decodeURIComponent , encoded=deneme , decoded= deneme
2292. 18 Apr 2014 07:05:22 INFO com.nakisa.Logger - ...Request is not required to be verified. For action: updateNotifications. For processor NotificationsProcessor
2293. 18 Apr 2014 07:05:22 INFO com.nakisa.Logger - Invoking action:updateNotifications []. For processor NotificationsProcessor. Against controller NotificationsCtr
2294. 18 Apr 2014 07:05:22 INFO com.nakisa.Logger - updateNotifications on NotificationsProcessor took: 1ms
2295. 18 Apr 2014 07:05:22 INFO com.nakisa.Logger - FunctionRunner.executeFunctionDirect: /NAKISA/OC_OU_LISTING took: 32ms
2296. 18 Apr 2014 07:05:22 INFO com.nakisa.Logger - setsearch on OrgChartAppEventProcessor took: 86ms
2297. 18 Apr 2014 07:05:22 INFO com.nakisa.Logger - com.nakisa.framework.utility.PostRequestActionRegister.callAction(PostRequestAction) : Calling: PostRequestAction [class=com.nakisa.framework.data.commandProcessor.impl.sap.FunctionRunner, method=releaseAllClients]
2298. 18 Apr 2014 07:05:25 INFO com.nakisa.Logger - ...Request is not required to be verified. For action: setsearch. For processor OrgChartAppEventProcessor
2299. 18 Apr 2014 07:05:25 INFO com.nakisa.Logger - Invoking action:setsearch [ORGUNIT_NAME, contains, test]. For processor OrgChartAppEventProcessor. Against controller OrgChartCtr
2300. 18 Apr 2014 07:05:25 INFO com.nakisa.Logger - Strings.decodeURIComponent , encoded=test , decoded= test
2301. 18 Apr 2014 07:05:25 INFO com.nakisa.Logger - ...Request is not required to be verified. For action: updateNotifications. For processor NotificationsProcessor
2302. 18 Apr 2014 07:05:25 INFO com.nakisa.Logger - Invoking action:updateNotifications []. For processor NotificationsProcessor. Against controller NotificationsCtr
2303. 18 Apr 2014 07:05:25 INFO com.nakisa.Logger - FunctionRunner.executeFunctionDirect: /NAKISA/OC_OU_LISTING took: 28ms
2304. 18 Apr 2014 07:05:25 INFO com.nakisa.Logger - updateNotifications on NotificationsProcessor took: 1ms
2305. 18 Apr 2014 07:05:25 INFO com.nakisa.Logger - setsearch on OrgChartAppEventProcessor took: 73ms
2306. 18 Apr 2014 07:05:25 INFO com.nakisa.Logger - com.nakisa.framework.utility.PostRequestActionRegister.callAction(PostRequestAction) : Calling: PostRequestAction [class=com.nakisa.framework.data.commandProcessor.impl.sap.FunctionRunner, method=releaseAllClients]
2307. 18 Apr 2014 07:05:28 INFO com.nakisa.Logger - ...Request is not required to be verified. For action: setsearch. For processor OrgChartAppEventProcessor
2308. 18 Apr 2014 07:05:28 INFO com.nakisa.Logger - Invoking action:setsearch [ORGUNIT_NAME, contains, kalite]. For processor OrgChartAppEventProcessor. Against controller OrgChartCtr
2309. 18 Apr 2014 07:05:28 INFO com.nakisa.Logger - Strings.decodeURIComponent , encoded=kalite , decoded= kalite
2310. 18 Apr 2014 07:05:28 INFO com.nakisa.Logger - ...Request is not required to be verified. For action: updateNotifications. For processor NotificationsProcessor
2311. 18 Apr 2014 07:05:28 INFO com.nakisa.Logger - Invoking action:updateNotifications []. For processor NotificationsProcessor. Against controller NotificationsCtr
2312. 18 Apr 2014 07:05:28 INFO com.nakisa.Logger - updateNotifications on NotificationsProcessor took: 1ms
2313. 18 Apr 2014 07:05:28 INFO com.nakisa.Logger - FunctionRunner.executeFunctionDirect: /NAKISA/OC_OU_LISTING took: 43ms
2314. 18 Apr 2014 07:05:28 INFO com.nakisa.Logger - setsearch on OrgChartAppEventProcessor took: 94ms
2315. 18 Apr 2014 07:05:28 INFO com.nakisa.Logger - com.nakisa.framework.utility.PostRequestActionRegister.callAction(PostRequestAction) : Calling: PostRequestAction [class=com.nakisa.framework.data.commandProcessor.impl.sap.FunctionRunner, method=releaseAllClients]
Regards. -
Avoid JDBC sender error: Execute statement did not return a result set
Hi!
My JDBC sender adapter towards MS SQL server works fine, with an Execute statement calling a stored procedure that returns the source data needed. The stored procedure itself updates the status of database table records, so that only the unread records are returned each time the stored procedure is called.
However, the communication channel monitoring sets a red flag for the JDBC sender adapter, when there are no values to fetch from the database table (using the stored procedure). Message says: "Database-level error reported by JDBC driver while executing statement 'EXECUTE FetchMessage 1, 9000'. The JDBC driver returned the following error message: 'com.microsoft.sqlserver.jdbc.SQLServerException: The statement did not return a result set.'. For details, contact your database server vendor."
This is not an error situation, as I do not expect there to be any values to fetch from the database at all times.
I do not see how to change the stored procedure to avoid this error.
Is there a parameter to be set on the JDBC adapter that I can use, so the red flag is avoided?
Thanks for any input!
Regards,
Oeystein EmhjellenHi Oeystein Emhjellen.
The problem is Store Procedure that has to generate always a ResultSet (or cursor). If it doesn't have a output, you have to generate an Empty ResultSet.
Like a SELECT Statement:
If there are data, SELECT get an output result but if it get nothing the SELECT Statement get a empty ResultSet.
Ask to your database team.
I hope it helps you.
Bruno. -
I have a Xquery statement that works as expected on Oracle 10.2.0.5 but does not return any results on Oracle 10.2.0.4.
Is this the result of a badly written query? A bug in 10.2.0.4?
Is there a way to rewrite the query so that is does work on 10.2.0.4?
Testcode:
declare
l_xml xmltype;
-- Select layers with TileMatrixSet EPSG:28992
cursor c_layer(p_xml xmltype) is
select t.*
from xmltable(xmlnamespaces(default 'http://www.opengis.net/wmts/1.0'
,'http://www.opengis.net/ows/1.1' as "ows"
,'http://schemas.opengis.net/gml' as "gml"
,'http://www.w3.org/1999/xlink' as "xlink"
,'http://www.w3.org/2001/XMLSchema-instance' as "xsi")
,'for $d in //Layer[TileMatrixSetLink/TileMatrixSet="EPSG:28992"] return $d' passing
p_xml columns title varchar2(100) path 'ows:Title'
,format varchar2(100) path 'Format'
,style xmltype path 'Style') as t;
begin
l_xml := xmltype.createxml('<?xml version="1.0" encoding="UTF-8"?>
<Capabilities xmlns="http://www.opengis.net/wmts/1.0"
xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:gml="http://www.opengis.net/gml" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd"
version="1.0.0">
<Contents>
<Layer>
<ows:Title>brtachtergrondkaart</ows:Title>
<ows:Identifier>brtachtergrondkaart</ows:Identifier>
<Style isDefault="true">
<ows:Identifier>_null</ows:Identifier>
</Style>
<Format>image/png8</Format>
<TileMatrixSetLink> <TileMatrixSet>EPSG:28992</TileMatrixSet>
</TileMatrixSetLink> </Layer>
<Layer>
<ows:Title>top10nl</ows:Title>
<ows:Identifier>top10nl</ows:Identifier>
<Style isDefault="true">
<ows:Identifier>_null</ows:Identifier>
</Style>
<Format>image/png8</Format>
<TileMatrixSetLink> <TileMatrixSet>EPSG:28992</TileMatrixSet>
</TileMatrixSetLink> </Layer>
<Layer>
<ows:Title>bgt</ows:Title>
<ows:Identifier>bgt</ows:Identifier>
<Style isDefault="true">
<ows:Identifier>_null</ows:Identifier>
</Style>
<Format>image/png8</Format>
<TileMatrixSetLink> <TileMatrixSet>EPSG:28992</TileMatrixSet>
</TileMatrixSetLink> </Layer>
</Contents>
</Capabilities>');
for r_layer in c_layer(l_xml)
loop
dbms_output.put_line(r_layer.title);
end loop;
end;Result on 10.2.0.5:
brtachtergrondkaart
top10nl
bgtThis one's strange indeed.
I can reproduce on 10.2.0.4 and one of the following seems to fix it :
1) Specifying the column list in the SELECT, instead of t.* :
-- Select layers with TileMatrixSet EPSG:28992
cursor c_layer(p_xml xmltype) is
select t.title, t.format, t.style
from xmltable(or,
2) Using an extended FLWOR expression :
for $d in //Layer
where $d/TileMatrixSetLink/TileMatrixSet = "EPSG:28992"
return $dMaybe you've already noticed but the problem only occurs within a PL/SQL context.
The same query run from SQL is OK. -
Basic NOT EXISTS query not returning any results
DB Version: 10gR2
One of our tables in the test schema is having less number of columns than the PROD shema.
To determine which are missing columns in this table in Test schema i did the following.
-----In Test Schema
CREATE TABLE XYZ2
(COL1 NUMBER); ----------only one column
SQL > CREATE TABLE tables_test_list AS SELECT TABLE_NAME,COLUMN_NAME FROM USER_TAB_COLS;
Table created.--- In the prod schema
SQL> CREATE TABLE XYZ2
2 (COL1 NUMBER,
3 COL2 NUMBER ----------- same table name with an extra column
4 );
Table createdAnd from the PROD schema i execute the following SQL to determine what are the columns that are missing in the TEST schema
select column_name from User_Tab_Cols outer
where table_name='XYZ2'
and not exists (select 1 from TEST_SCHEMA.tables_test_list inner where outer.TABLE_NAME=inner.TABLE_NAME )But the above query is not returning any results. Any idea why?Actually, the example from the link I posted earlier:
[email protected]> (
2 select 'IN T1, NOT T2', column_name,data_type,data_length
3 from user_tab_columns
4 where table_name = 'T1'
5 MINUS
6 select 'IN T1, NOT T2', column_name,data_type,data_length
7 from user_tab_columns
8 where table_name = 'T2'
9 )
10 UNION ALL
11 (
12 select 'IN T2, NOT T1', column_name,data_type,data_length
13 from user_tab_columns
14 where table_name = 'T2'
15 MINUS
16 select 'IN T2, NOT T1', column_name,data_type,data_length
17 from user_tab_columns
18 where table_name = 'T1'
19 )
20 / -
Table-Valued Function not returning any results
ALTER FUNCTION [dbo].[fGetVendorInfo]
@VendorAddr char(30),
@RemitAddr char(100),
@PmntAddr char(100)
RETURNS
@VendorInfo TABLE
vengroup char(25),
vendnum char(9),
remit char(10),
payment char(10)
AS
BEGIN
insert into @VendorInfo (vengroup,vendnum)
select ks183, ks178
from hsi.keysetdata115
where ks184 like ltrim(@VendorAddr) + '%'
update @VendorInfo
set remit = r.remit
from
@VendorInfo ven
INNER JOIN
(Select ksd.ks188 as remit, ksd.ks183 as vengroup, ksd.ks178 as vendnum
from hsi.keysetdata117 ksd
inner join @VendorInfo ven
on ven.vengroup = ksd.ks183 and ven.vendnum = ksd.ks178
where ksd.ks192 like ltrim(@RemitAddr) + '%'
and ks189 = 'R') r
on ven.vengroup = r.vengroup and ven.vendnum = r.vendnum
update @VendorInfo
set payment = p.payment
from
@VendorInfo ven
INNER JOIN
(Select ksd.ks188 as payment, ksd.ks183 as vengroup, ksd.ks178 as vendnum
from hsi.keysetdata117 ksd
inner join @VendorInfo ven
on ven.vengroup = ksd.ks183 and ven.vendnum = ksd.ks178
where ksd.ks192 like ltrim(@PmntAddr) + '%'
and ks189 = 'P') p
on ven.vengroup = p.vengroup and ven.vendnum = p.vendnum
RETURN
END
GO
Hi all,
I'm having an issue where my Table-Valued Function is not returning any results.
When I break it out into a select statement (creating a table, and replacing the passed in parameters with the actual values) it works fine, but with passing in the same exact values (copy and pasted them) it just retuns an empty table.
The odd thing is I could have SWORN this worked on Friday, but not 100% sure.
The attached code is my function.
Here is how I'm calling it:
SELECT * from dbo.fGetVendorInfo('AUDIO DIGEST', '123 SESAME ST', 'TOP OF OAK MOUNTAIN')
I tried removing the "+ '%'" and passing it in, but it doesn't work.
Like I said if I break it out and run it as T-SQL, it works just fine.
Any assistance would be appreciated.Why did you use a proprietary user function instead of a VIEW? I know the answer is that your mindset does not use sets. You want procedural code. In fact, I see you use an “f-” prefix to mimic the old FORTRAN II convention for in-line functions!
Did you know that the old Sybase UPDATE.. FROM.. syntax does not work? It gives the wrong answers! Google it.
Your data element names make no sense. What is “KSD.ks188”?? Well, it is a “payment_<something>”, “KSD.ks183” is “vendor_group” and “KSD.ks178” is “vendor_nbr” in your magical world where names mean different things from table to table!
An SQL programmer might have a VIEW with the information, something like:
CREATE VIEW Vendor_Addresses
AS
SELECT vendor_group, vendor_nbr, vendor_addr, remit_addr, pmnt_addr
FROM ..
WHERE ..;
--CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
in Sets / Trees and Hierarchies in SQL -
The statement did not return a result set in ireport
Hi,
I am Building a Report in iReport(Jasper Reports). I called a stored procedure from iReport by passing a parameter in Query Editor. I am getting an exception saying "The statement did not return a result set". When
i use Temp Tables in stored procedure i am getting the exception.
If there is no temptable in Stored procedure there wont be any exception.
This is my Stored procedure
Create PROCEDURE [XUSP_REPORT_SOPRINT] @BNUM VARCHAR(20) AS
BEGIN
DECLARE @FQTY BIGINT
DECLARE @ITNAME VARCHAR(100)
DECLARE @COUNT INT=0
DECLARE @COUNT1 INT=0
CREATE TABLE #BILL_PRINT(
[BNUM] [varchar](20) NOT NULL,
[CNAME] [varchar](30) NOT NULL,
[CNUM] [int] NOT NULL,
[ITNAME] [varchar](100) NOT NULL,
[ITEM#] [int] NOT NULL,
[QTY] [int] NOT NULL DEFAULT 0,
[UNIT] [varchar](5) NOT NULL,
[PRICE] [float] NOT NULL DEFAULT 0,
[BASIC] [float] NOT NULL DEFAULT 0,
[DISCOUNT] [float] NOT NULL DEFAULT 0,
[FRQTY] [int] NOT NULL DEFAULT 0,
[BADDR] [varchar](300) NULL,
[CADDR] [varchar](300) NOT NULL,
[BDATE] [datetime] NULL DEFAULT (sysdatetime()),
[BILLBY] [varchar](50) NOT NULL,
[ROUTE] [varchar](200) NULL,
[AMT] [float] NOT NULL DEFAULT 0,
[VAT] [float] NOT NULL DEFAULT 0,
[VAT AMT] [float] NOT NULL DEFAULT 0,
[AMT_AF_DISC] [float] NOT NULL DEFAULT 0,
[AMT_AF_VAT] [float] NOT NULL DEFAULT 0,
[TOT_DISC] [float] NOT NULL DEFAULT 0,
[ROUND_OFF] [float] NOT NULL DEFAULT 0,
[TOT_VAT] [float] NOT NULL DEFAULT 0,
[AMT_UNDER_VAT] [float] NOT NULL DEFAULT 0,
[NETT] [float] NOT NULL DEFAULT 0,
[TOS] [varchar](30) NULL DEFAULT 0,
[CDISC] [float] NOT NULL DEFAULT 0,
[SDISC] [float] NOT NULL DEFAULT 0
insert into #BILL_PRINT SELECT [BNUM]
,[CNAME]
,[CNUM]
,[ITNAME]
,[ITEM#]
,[QTY]
,[UNIT]
,[PRICE]
,[BASIC]
,[DISCOUNT]
,[FRQTY]
,[BADDR]
,[CADDR]
,[BDATE]
,[BILLBY]
,[ROUTE]
,[AMT]
,[VAT]
,[VAT AMT]
,[AMT_AF_DISC]
,[AMT_AF_VAT]
,[TOT_DISC]
,[ROUND_OFF]
,[TOT_VAT]
,[AMT_UNDER_VAT]
,[NETT]
,[TOS]
,[CDISC]
,[SDISC]
FROM [SALES_DETAILS] WHERE BNUM=@BNUM
CREATE TABLE #ITNAME_0
ITEM VARCHAR(100) NOT NULL,
FREE BIGINT NOT NULL
INSERT INTO #ITNAME_0 SELECT ITNAME,FRQTY FROM SALES_DETAILS WHERE FRQTY<>0 AND BNUM=@BNUM
--SELECT * FROM #ITNAME_0
SET @COUNT=(SELECT COUNT(*) FROM #ITNAME_0)
WHILE @COUNT!=0
BEGIN
SET @FQTY=(SELECT TOP(1) FREE FROM #ITNAME_0)
SET @ITNAME=(SELECT TOP(1) ITEM FROM #ITNAME_0)
SET @COUNT1=(SELECT COUNT(*) FROM #BILL_PRINT WHERE ITNAME=@ITNAME AND BNUM=@BNUM)
IF @COUNT1=2
BEGIN
UPDATE #BILL_PRINT
SET FRQTY+=@FQTY
WHERE ITNAME=@ITNAME AND QTY<>0
DELETE FROM #ITNAME_0 WHERE ITEM=@ITNAME AND FREE=@FQTY
DELETE FROM #BILL_PRINT WHERE ITNAME=@ITNAME AND QTY=0
END
SET @COUNT=@COUNT-1
END
--SELECT *FROM sales_details
SELECT *FROM #BILL_PRINT where bnum=@bnum
DROP TABLE #BILL_PRINT
DROP TABLE #ITNAME_0
END
Please help me out in this.
Thanks,
Shreyas MThis is a forum for Reporting Services (SSRS). If you're using Jasper reports then you should be posting in relevenat forums. I'm not sure there would be enough people with Jasper report experience here to help you out!
Anyways in SSRS when we use Temp tables in procedure it will throw exception in editor but when you save and run it will still work fine. Did you try saving it and executing report? Did the error still persisted?
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page -
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> -
The dashboard propmt not showing desired results
Hi,
I have propmt created using this condition.But it is not showing me the desired results.The code seems to be correct.any help plz...
case when TimeStampDiff(SQL_TSI_DAY,"TB1".CL1,CURRENT_DATE) between 0 and 30 or TimeStampDiff(SQL_TSI_DAY,"TB1".CL2,CURRENT_DATE) between 0 and 30 then '30 days'
when TimeStampDiff(SQL_TSI_DAY,"TB1".CL1,CURRENT_DATE) between 31 and 60 or TimeStampDiff(SQL_TSI_DAY,"TB1".CL2,CURRENT_DATE) between 31 and 60 then ' last 60 days'
when TimeStampDiff(SQL_TSI_DAY,"TB1".CL1,CURRENT_DATE) between 61 and 90 or TimeStampDiff(SQL_TSI_DAY,"TB1".CL1,CURRENT_DATE) between 61 and 90 then 'last 90 days'
else '> 90 and max 100 Days' endHi,
Create a dummy column for the below code
case when TimeStampDiff(SQL_TSI_DAY,"TB1".CL1,CURRENT_DATE) between 0 and 30 or TimeStampDiff(SQL_TSI_DAY,"TB1".CL2,CURRENT_DATE) between 0 and 30 then '30 days'
when TimeStampDiff(SQL_TSI_DAY,"TB1".CL1,CURRENT_DATE) between 31 and 60 or TimeStampDiff(SQL_TSI_DAY,"TB1".CL2,CURRENT_DATE) between 31 and 60 then ' last 60 days'
when TimeStampDiff(SQL_TSI_DAY,"TB1".CL1,CURRENT_DATE) between 61 and 90 or TimeStampDiff(SQL_TSI_DAY,"TB1".CL1,CURRENT_DATE) between 61 and 90 then 'last 90 days'
else '> 90 and max 100 Days' endfilter it as is prompted for that column after giving filter as is prompted you can hide that column or remove it.
Save the report
Assign points and close thread, if your question is answered....
Cheers,
Aravind -
SPEL not giving desired result
Hi ALL,
SPEL
*${oa.TestPVO1.xxDisable}* on Disable Property for a button
In CO
OAApplicationModule am = (OAApplicationModule)pageContext.getApplicationModule(webBean);
am.invokeMethod("hide");
In AM
public void hide()
OAViewObject disvo = (OAViewObject)getTestPVO1();
if (!disvo.isPreparedForExecution())
disvo.executeQuery();
Row drow = disvo.createRow();//.getCurrentRow();
disvo.insertRow(drow);
drow.setAttribute("xxDisable", Boolean.FALSE);
NOT giving desired o/p to disable the button
Thanks,
Sombit.
Edited by: Sombit on Oct 1, 2009 7:33 AMTry assigning the SPEL value in the *VORowImpl.
First, in order to assign a value to SPEL, you'll need to create a custom VO. Here's a sample query I've used to create my VO to pull data pertainining to if an Attribute should be mandatory/rendered.
SELECT min(descriptive_flex_context_code) descriptive_flex_context_code, min(Enabled) Enabled, min(END_USER_COLUMN_NAME) END_USER_COLUMN_NAME, min(required_flag) required_flag, min(application_column_name) application_column_name,
min(xxx.LOV) LOV
from
(SELECT descriptive_flex_context_code,'Y' Enabled, END_USER_COLUMN_NAME, required_flag, application_column_name,
decode(ffvv.flex_value,null,'N','Y') LOV
FROM FND_DESCR_FLEX_COL_USAGE_VL fdfc,
fnd_flex_values_vl ffvv
WHERE (fdfc.APPLICATION_ID=20045)
and (fdfc.DESCRIPTIVE_FLEXFIELD_NAME LIKE 'SPL Account Map')
and fdfc.enabled_flag = 'Y'
and fdfc.display_flag = 'Y'
and fdfc.application_column_name = 'ATTRIBUTE5'
and ffvv.flex_value_set_id(+) = fdfc.flex_value_set_id
and rownum = 1) xxx
Once the VO is created, I created several transient "boolean" attributes in my VO. These attributes will be assigned a value based on code I place in my *VORowImpl since this is the file which controls attribute assignments.
But before that, in my *VOImpl, I've defined a custom method which is used to execute the VO from my AM.
public class Ref5PVOImpl extends OAViewObjectImpl
* This is the default constructor (do not remove)
public Ref5PVOImpl()
public void initRef5PVO()
// setWhereClause("descriptive_flex_context_code in (select vendor_name from spl_account_map where cont_cd = :1)");
setWhereClauseParams(null); //Always reset
// setWhereClauseParam(0, acct);
// System.out.println("value_selected customer>> "+acct);
executeQuery();
In my *VORowImpl, I've added custom code to my Attribute methods so that they return the proper values when invoked...
public String getMakeRequired()
if (getRequiredFlag()!= null)
if ("Y".equals(getRequiredFlag()))
//if(getMessageChoiceAttribute()==null)
System.out.println("Required returned yes");
return "yes";
else
System.out.println("Required returned no");
return "no";
else
return "no"; //poplist will be disabled - DFF is not configured
public Boolean getOptionRender()
if (getLov()!= null)
// In this method check if the Message Text Input is valid
if ("N".equals(getLov()))
System.out.println("OptionRender returned true "+ getLov());
return Boolean.TRUE; //text input will be enabled if no LOV exists
else
System.out.println("OptionRender returned false "+ getLov());
return Boolean.FALSE; //text input will be disabled if LOV exists
else
return Boolean.FALSE; //text input will be disabled - DFF is not configured
Then add your SPEL directive into your field's Property inpector...
${oa.Ref5PVO1.MakeRequired}
${oa.Ref5PVO1.OptionRender}
Maybe you are looking for
-
Template for users without Adobe
I have a fairly complicated design challenge I'm trying to work out. I work as the inhouse designer for a small dental office and they present "before" and "after" photos to their patients with braces. I've been asked to create a fun background ima
-
Hi All, As like SAP log files stored in \usr\sap\<SID>\DVEBMGS00\log if I am wrong correct it.And we can view system log through sm21 I want to know the log file path for Oracle.(Oracle log file path ,SAP) Also I want the Oracle file system details
-
OIM11gR2 BP3 - Migration of GTC from one env to another
Hello All, I'm trying to export a GTC from my Dev env to another env. I did export the GTC via Deployment Manager by choosing the Generic Connector option. I've selected all the dependencies like Resource Object, IT Resource, IT Resource Type, Applic
-
I REALLY dislike what happened to my desktop with the latest release of Firefox. I want it backed out....I want NO SCRIPT removed. I want my CLOSE TAB selection back under File. I DO NOT WANT TO DO ALL THIS CLICKING TO ALLOW SITES THAT I NORMALLY VIS
-
Hi, I'm trying to compile a java code that needs to use a method from a .class file that was given to me, putting this on top: import build.zzzz.*; The problem is that I cannot get it to compile, it says it can't find that class: bash-2.05a$ javac -v