Sharepoint search with multiple managed metadata terms
How do we search multiple managed metadata terms programmatically? I tried the following but did not get any results. The below url does not yield any results.
http://app-0efff1c35fb5bc.xxxxxxx.com/sites/test/webpart/_api/search/query?querytext=%27owstaxIdDocumentx0020Type:Checklist;Intel%27&selectproperties=%27Path,Title,Author,LastModifiedTime&rowlimit=500&trimduplicates=false&enablequeryrules=false
owstaxIdDocumentx0020Type:Checklist;Intel
The results exist when the querytext is changed to owstaxIdDocumentx0020Type:Checklist. How do we perform an "AND" operation with multiple terms?
V
Have you tried:
owstaxIdDocumentx0020Type:Checklist AND owstaxIdDocumentx0020Type:Intel
Blog | SharePoint Field Notes Dev Tools |
SPFastDeploy | SPRemoteAPIExplorer
Similar Messages
-
Hi,
I am having an issue where when I insert a Content Query webpart into a page, and filter to managed metadata, all the right documents show up except one document that happens to have two metadata tags attached to it. The content query webpart is set
to only look through a specific document library. I'm not sure what I am doing wrong.
Here is the one document with two metadata tags:
Below is the Content Query:Hi,
As I understand, you did not get the results with multiple metadata tags through Content Query web part in SharePoint 2013.
Check things below:
1. Check if you have set the item limit more than the display items in Presentation section of the web part. If the item number more than item limit, the rest items will not show.
2. Check if the item you cannot find uses the content type you have set in the content type section of content query web part.
When you edit the properties of the item, you will see the content type the item is using.
Best regards
Sara Fan
TechNet Community Support -
How to search with multiple constraints in the new java API?
I'm having a problem using the new MDM API to do searches with multiple constraints. Here are the classes I'm trying to use, and the scenario I'm trying to implement:
Classes:
SearchItem: Interface
SearchGroup: implements SearchItem, empty constructor,
addSearchItem (requires SearchDimension and SearchConstraint, or just a SearchItem),
setComparisonOperator
SearchParameter: implements SearchItem, constructor requires SearchDimension and SearchConstraint objects
Search: extends SearchGroup, constructor requires TableId object
RetrieveLimitedRecordsCommand: setSearch method requires Search object
FieldDimension: constructor requires FieldId object or FieldIds[] fieldPath
TextSearchConstraint: constructor requires string value and int comparisonOperator(enum)
BooleanSearchConstraint: constructor requires boolean value
Scenario:
Okay, so say we have a main table, Products. We want to search the table for the following:
field IsActive = true
field ProductColor = red or blue or green
So the question is how to build this search with the above classes? Everything I've tried so far results in the following error:
Exception in thread "main" java.lang.UnsupportedOperationException: Search group nesting is currently not supported.
at com.sap.mdm.search.SearchGroup.addSearchItem(Unknown Source)
I can do just the ProductColor search like this:
Search mySearch = new Search(<Products TableId>);
mySearch.setComparisonOperator(Search.OR_OPERATOR);
FieldDimension myColorFieldDim = new FieldDimension(<ProductColor FieldId>);
TextSearchConstraint myTextConRed = new TextSearchConstraint("red",TextSearchConstraint.EQUALS);
TextSearchConstraint myTextConBlue = new TextSearchConstraint("blue",TextSearchConstraint.EQUALS);
TextSearchConstraint myTextConGreen = new TextSearchConstraint("green",TextSearchConstraint.EQUALS);
mySearch.addSearchItem(myColorFieldDim,myTextConRed);
mySearch.addSearchItem(myColorFieldDim,myTextConBlue);
mySearch.addSearchItem(myColorFieldDim,myTextConGreen);
the question is how do I add the AND of the BooleanSearchConstraint?
FieldDimension myActiveFieldDim = new FieldDimension(<IsActive FieldId>);
BooleanSearchConstraint myBoolCon = new BooleanSearchConstraint(true);
I can't just add it to mySearch because mySearch is using OR operator, so it would return ALL of the Products records that match IsActive = true. I tried creating a higher level Search object like this:
Search topSearch = new Search(<Products TableId>);
topSearch.setComparisonOperator(Search.AND_OPERATOR);
topSearch.addSearchItem(mySearch);
topSearch.addSearchItem(myActiveFieldDim,myBoolCon);
But when I do this I get the above "Search group nesting is currently not supported" error. Does that mean this kind of search cannot be done with the new MDM API?I'm actually testing a pre-release of SP05 right now, and it still is not functional. The best that can be done is to use a PickListSearchConstraint to act as an OR within a field. But PickList is limited to lookup Id values, text attribute values, numeric attribute values and coupled attribute values. It works for me in some cases where I have lookup Id values, but not in other cases where the users want to search on multiple text values within a single field.
-
Issue listeneing queue from Weblogic Cluster server with multiple managed server
Haveing issue listeneing queue from Weblogic Cluster server with multiple managed server.
Weblogic Cluster structure is like
Weblogic Cluster01
--ManagedServer01(http://server01.myhost.com:7001)
--ManagedServer02(http://server02.myhost.com:7001)
JMS Servers
JMSserver01 targeting: ManagedServer01
JMSserver02 targeting: ManagedServer02
JMSmodule
ConnectionFactory01 targeting:JMSserver01,JMSserver02
UDQueue01 targeting:JMSserver01,JMSserver02
Uniform Distributed Queue in Monitoring tab showing like this
mysystemmodule!JMSserver01@UDQueue01
mysystemmodule!JMSserver02@UDQueue01
So when I am sending message to any Host(by specifying the provider URL) its distributing equally on both server like
mysystemmodule!JMSserver01@UDQueue01 10
mysystemmodule!JMSserver02@UDQueue01 10
But when try to listen message from these queue, it is listening from one server, for which URL given to connect.
mysystemmodule!JMSserver01@UDQueue01 0
mysystemmodule!JMSserver02@UDQueue01 10
untill I connect to other server by giveing its URL, will not able to access other message left on the queue.
Solutions that tried
1) we have tried give both server URL coma sparated in provider URL
we need to configur same scenario for 5 managed server with 3 listener on other servers.
Do any one have solution for this.You need to have:
1. Consumers connected to each UDQ member
OR
2. If no consumers in some of the members is expected, you can configure Forward Delay (specify the amount of time, in seconds, that a queue member with messages, but with no consumers, will wait before forwarding its messages to other queue members that do have consumers):
http://docs.oracle.com/cd/E12839_01/apirefs.1111/e13952/taskhelp/jms_modules/distributed_queues/ConfigureUDQGeneral.html
For example you can set it to 10 (10s)
Additional Information here:
http://docs.oracle.com/cd/E23943_01/web.1111/e13727/dds.htm#i1314228
http://docs.oracle.com/cd/E23943_01/apirefs.1111/e13951/mbeans/DistributedQueueBean.html?skipReload=true#ForwardDelay
How Does JMS Load Balancing Work with Distributed Queues and Uniform Distributed Queues? (Doc ID 827294.1)
I hope this helps
Best Regards
Luz -
SharePoint writer metadata information in a SharePoint farm with multiple WFE servers.
I am working on Microsoft Volume Shadow Copy Service (VSS) framework. I know that in a 3-Tier SharePoint environment the SharePoint writer metadata on WFE server gives all the information related to that farm.
My question is -
a) How would i get all the information related to the SharePoint farm from the SharePoint writer metadata in an environment where multiple WFE servers are configured?
b) Is it possible that in a SharePoint farm where multiple WFE servers are deployed, SP writer of only one WFE server (Master/Main server) contains all the information about the respective SP farm servers in its metadata?Hi Aaditya,
All Writer Metadata is stored in Writer Metadata Document which is produced by writer. The backup application uses the Writer Metadata document to get information about that writer, the data it owns,
and how to restore that data. Once the writer produces it, the Writer Metadata Document is a read-only document to the backup application.
The Writer Metadata Document contains three sets of data: writer identification and classification information, writer-level specifications, and component data.
For getting Writer Metadata, you can use
IVssBackupComponents::GetWriterMetadata method.
For more information, you can refer to the articles:
http://msdn.microsoft.com/en-us/library/aa384992(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/aa384996(v=vs.85).aspx
http://blogs.technet.com/b/dpm/archive/2011/06/02/explaining-sharepoint-data-source-enumeration-with-data-protection-manager-2010.aspx
Best Regards,
Eric
Eric Tao
TechNet Community Support -
SP2013: Scaling search with multiple app server
Hi Team,
I am scaling a new SP environment with multiple App Server.
I have used AutoSPINstaller to install SP2013 and Search. My search components are spread across all servers. All Search components on all servers and I have a blank publishing site as part of my content source.
My issue is when i start full/Incremental crawl. It keeps on crawling for the whole day and do not produce any crawl error neither it stops. We waited for even 2 das but the crawl kept on going on.
Any help will be really appreciated.
Thanks Ba$vaHi Basva ,
Follow these steps (one at the time) to reset the Content Source crawl:
Start -> Run -> Services.msc -> Restart the “SharePoint Server Search 15”.
Make sure the Application Server Administration Service Timer Job working .
Navigate to Central Administration-> Manage service application->
Search Service Application,
Reset Index and see if that fixes the problems.
Go into the Services.msc on each server and change the "RECOVERY" method of the “SharePoint Server Search 15” from "FIRST FAILURE" to "TAKE NO ACTION" so that the service did not restart before
all the servers had their "SharePoint Server Search 14" stopped.
Best Regards,
Eric
Eric Tao
TechNet Community Support -
I have searched high and low on the internet o find a way to
do a search through multple fields but the more I lookthe more i
get confused. here is the problem. i want to do a search where the
user can input a data element and select the matching type and
display he results.below is the code that i have for my search
page, but I am confused about the more important parts of the fom -
the actual search variables.
If you look t the code below you see that I have a test field
named "recordID" and a drop down list named "select".
I want to dispay the results in which 'recordID' looks in
table thatis equal to 'select'.
an example of what I want is at the following link.
http://www.phpscriptsearch.com/DizzDizzy wrote:
> I went to
http://www.webassist.com/professional/products/productdetails=
=2Easp?PID=3D117&CouponID=3Dss2008&RID=3D590&WAAID=3D92
> but i could not find the solution there
Hi Dizz:
Under the banner you'll find links for Overview, Features,
System=20
Requirements, Support. When you click on the Features link,
the MooFX=20
Accordian javascript class runs to update the content on the
page. The=20
bullet points are clickable to similarly update the content
on the page. =
Click on the bullet point "Pro search and sort enhancements"
and read=20
the paragraph at the bottom under the screen shots:
Sophisticated search capabilities
DataAssist integrates the advanced search functionality
previously=20
available in Database Search. Now you can combine advanced
Google-style=20
keyword searches (across multiple database columns) with
price, date or=20
number ranges =96 all without coding.
Please take a look at the feature tour:
http://www.webassist.com/professional/products/featuretour/media_117.asp
As for the Prof's requirements, the form submits two values,
a recordID=20
and a selection to either search by company or by store
number.
If Prof has a table named company and another named store
number, the=20
way you'd search these tables would be to have another table
that=20
contains the selectcategories with a column containing the
values=20
"company" and "storeNumber" along with ID columns that relate
to a=20
categoryID column in the companies table and the storeNumber
column in=20
the Stores table. Using this relationship Prof can create a
reccordset=20
on his results page that returns the values using an INNER
JOIN to=20
combine the tables in the recordset. Similarly by
constructing the=20
relationships properly as to his records (let's say he's
searching 45RPM =
singles - anybody remember those thingies?) His company table
can have=20
an ID column that references his product table where a
companyID is=20
stored. Again, a JOIN statement is used to include the
product=20
information, including the ProductID in the Recordset.
Similarly for the =
Stores table, again, the Products table has a column that
identifies the =
store that carries that productID. If more than one store
carries the=20
product, the column should be a storesID column that
references a=20
ProductStores table which references the stores that carry
the product=20
by a common ID. Again, using the JOIN (this recordset query
would get=20
complex) the necessary data can be returned.
The DataAssist Search Server Behavior applies a sophisticated
WHERE=20
clause to the recordset. so that the requested records can be
returned=20
to the page. Prof is not needing a tool to build database
management, so =
I can see his point... but if this is something you do
regularly,=20
DataAssist will pay for itself over and over in time saved.
And WebAssist is conducting a 50% off sale through next
Friday, so it's=20
a good time to get on board. Here's a link to the discount
page for all=20
the products:
http://www.webassist.com/professional/products/productresults.asp?CouponI=
D=3Dss2008&RID=3D590&WAAID=3D92=20
enthusiastically,
mark haynes. -
SharePoint Search API multiple refinementfilters
Hi,
im trying to query the user profile service through the search REST API
https://server/_api/search/query?querytext=''&rowlimit=500&sourceid='b09a7990-05ea-4af9-81ef-edfab16c4e31'&refinementfilters='BaseOfficeLocation:equals("Netherlands")'
this works fine, but I also want to filter on particular skills of a person, so I want to filter on BaseOfficeLocation and Skills.
I also would like to know if it is possible to query the user profile service without having to provide a querytext.
I've tried to find information about this on the internet but no luck.There is nothing in the user profile service REST api to query for multiple users. There is the PeopleManager object which enables you to get either your own user profile properties or another user's properties. If you want to search for multiple users based
on user profile properties then you must use the search REST api.
http://msdn.microsoft.com/en-us/library/jj667813.aspx
function getUserProperty() {
var restSource = decodeURIComponent(getQueryStringParameter("SPAppWebUrl"))
+ "/_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyName='PreferredName')?@v='klimaging\steve.curran'"
try {
$.ajax(
url: restSource,
method: "GET",
headers: {
"accept": "application/json; odata=verbose",
success: function (data) {
var mydata = data;
alert('whatever3');
error: function (err) {
alert(JSON.stringify(err));
catch (err) {
alert(JSON.stringify(err));
Blog |SharePoint Field Notes Dev Tool |
SPFastDeploy -
Run Admin Server with multiple Managed Servers each using different userid?
We currently run separate WebLogic domain instances for each business application in a Unix environment. Each one is created using a unix userid unique to that application and which owns all the files and is used to run the process when that particular WebLogic instance is started up. We have run this way for a while.
I am considering altering our approach to the one that is recommended, i.e. in our Production environment we would run a single Admin instance with numerous managed servers. One issue I'm stuck on is the fact that in our current environment, each application has a different unix userid that owns the files making up the WebLogic domain instance and that WebLogic instance is run under that userid.
I've investigated and experimented using WebLogic 10.3 preview and WebLogic 10.0, but I haven't been able to determine what I have to do to make each managed server's files and processes belong to a different unix userid, if that is even possible.
Is there a way, using the recommended approach, where there is a single Admin instance that has multiple managed servers whose files and processes are owned by different unique, unix userids?
If not, how would you separate access to each of the Managed Servers so that the programmers who maintain them don't have access to Managed Servers that they are not responsible for?
Thanks for any help or suggestions.....Hi:
I played with this stuff and I found that this will work, without the Location elements:
<IfModule mod_weblogic.c>
MatchExpression /app1 WebLogicHost=server1|WebLogicPort=7003
MatchExpression /app2 WebLogicHost=server2|WebLogicPort=7003
</IfModule>
Also this will work too, with no entries inside the IfModule element:
<Location /app1 >
SetHandler weblogic-handler
WebLogicHost server1
WebLogicPort 7003
</Location>
<Location /app2 >
SetHandler weblogic-handler
WebLogicHost server2
WebLogicPort 7003
</Location> -
With Multiple Management Services, How BIg Is Your Shared Filesystem?
I am installing Grid Control 11.1 with multiple OMSs. Oracle uses a shared filesystem in this configuration for load balancing and fault tolerance. I want to know from anyone who has installed multiple OMSs: how much storage does Grid Contorl use in the shared file system in your implementation. Please also state how many targets are monitored. Thanks.
The size of the shared location is dependent upon:
1. How quickly agent files are processed - If your OMS are going to be down for awhile, size the location to support storing the files until processing can being and catch-up. The files are small but depending on the number of targets this can add up.
2. Usage of provisioning - Ensure you size to support all the various files used in your provisioning
We have several hundred targets, two OMS, and make limited usage of provisioning (software and agent installation images). We allocated an NFS share of 50GB but typical usage is <20GB, with 95% of that is due to the provisioning files. -
Search with multiple values in only one field
Hello there,
I have this query to get the results when the user make a search query:
select * from (
select
"ID",
"ID" ID_DISPLAY,
"SHIFT_DATE",
"SHIFT",
"OFFENSE_ID",
"DESCRIPTION",
"ANALYST",
"STATUS",
"SUBSTATUS"
from "#OWNER#"."IDSIEM_OFFENSES")
where
OFFENSE_ID IN(:P223_OFFENSES) AND
instr(upper("DESCRIPTION"),upper(nvl(:P223_DESCRIPTION,"DESCRIPTION"))) > 0
AND
instr(upper("SHIFT"),upper(nvl(:P223_SHIFT,"SHIFT"))) > 0
AND
instr(upper("SUBSTATUS"),upper(nvl(:P223_SUBSTATUS,"SUBSTATUS"))) > 0
AND
instr(upper("ANALYST"),upper(nvl(:P223_ANALYST,"ANALYST"))) > 0
AND
instr(upper("SHIFT_DATE"),upper(nvl(:P223_SHIFTDATE,"SHIFT_DATE"))) > 0
AND
instr(upper("STATUS"),upper(nvl(:P223_STATUS,"STATUS"))) > 0
ORDER BY OFFENSE_ID DESC
The thing that I want to do is to put multiple values on the field P223_OFFENSES when I search. For example an offense is a number, so I would like to put in the search field 1111, 3333, 4444, 5555 and the report shows me those 4 offenses in the report. The search operation works only when I put only 1 offenses, but when I put more than 1 separated by comma, it shows me this error: report error:ORA-01722: invalid number. That's why because is a number and the comma character is not allowed, how can I achieve this? Thank you in advance.
Regards, BernardoTry this one please
select *
from (select "ID",
"ID" ID_DISPLAY,
"SHIFT_DATE",
"SHIFT",
"OFFENSE_ID",
"DESCRIPTION",
"ANALYST",
"STATUS",
"SUBSTATUS"
from "#OWNER#"."IDSIEM_OFFENSES")
where (instr(upper("DESCRIPTION"),
upper(nvl(:P223_DESCRIPTION, "DESCRIPTION"))) > 0)
AND (instr(upper("SHIFT"), upper(nvl(:P223_SHIFT, "SHIFT"))) > 0)
AND (instr(upper("SUBSTATUS"), upper(nvl(:P223_SUBSTATUS, "SUBSTATUS"))) > 0)
AND (instr(upper("ANALYST"), upper(nvl(:P223_ANALYST, "ANALYST"))) > 0)
AND (instr(upper("SHIFT_DATE"),
upper(nvl(:P223_SHIFTDATE, "SHIFT_DATE"))) > 0)
AND (instr(upper("STATUS"), upper(nvl(:P223_STATUS, "STATUS"))) > 0)
AND regexp_like(offense_id,'^('||
regexp_replace(regexp_replace(:P233_OFFENSES,'[[:space:]]'),
'|')||')$','i')
What I am trying to achieve is this
*** I expect your user to put in the values separated by commas like 27823, 27815, 27834 ****
1. from the input the user gives back via :P233_OFFENSES, remove SPACES.
2. Replace all "," with "|"
3. do a regexp_like search by boxing in the input values with a "^" and "$" so that it does not select values like 278157 which contains the value you searched for viz. 27815
You can better understand this if you try this query out
with q1 as
( select 1 as id, 27823 as offense_id from dual
union
select 2 as id, 27815 as offense_id from dual
union
select 3 as id ,27834 as offense_id from dual
union
select 11 as id, 227823 as offense_id from dual
union
select 12 as id, 278157 as offense_id from dual
union
select 13 as id , 278347 as offense_id from dual
union
select 21 as id, 278233 as offense_id from dual
union
select 22 as id, 278156 as offense_id from dual
union
select 23 as id ,627834 as offense_id from dual ),
q2 as (
select regexp_replace(regexp_replace('27823, 27815, 27834','[[:space:]]'), ',','|') as P233_OFFENSES from dual )
select * from q1 q, q2 g
where regexp_like(q.offense_id , '^('||P233_OFFENSES||')$','i') ;
This should return only the first 3 rows -
Integrating Trex search With Solution manager
HI Guys,
Please help me with this .
Let's say the solution manager is integrated in the SAP Portal and trex is available in the SAP portal.
Can we search documents stored in the solution manager via the trex which is integrated in the SAP Portal? Is there a how-to guide available on the config?
Any thoughts are appreciated.
Dev.Hi Dev
I'm facing a similar problem.
We have a trex server. We connected the TRex to our EP KM. Fulltext search in our Portal KM works well.
We have several project documentations on our Solution Manager. I was hoping I could connect the KM repository of the solution manager to our TREX and search the docs from EP. I was able to connect the Solution Manager repository to Trex. The index is working well.
The procedure is described in note 750623 but unfortunately the note is far away from a how to guide so I hope this helps:
Trex:
- Go to Admin Tool. Then landscape - connectivity and click on create "Connection". Enter system information of your solution manager system. Then click on Create - RFC Destination (sm59).
Solution Manager:
- Transaction srmo: Create a new Search Server Relation (DRFUZZY) and enter the RFC Destination you created in the above step and set it to default.
- Transaction spro: SAP Solution Manager - Cross-Scenario Settings - Document Management - Servers - Connect Index Server for Full Text Search. Click on "Define Index Readiness" and mark both entries for "IWBSolar" and save.
- Now go tou se38 and start the report RSTIRIDX_REINDEX. Here enter IWBSOlAR for document area and execute.
- Now go back to spro: Start the IMG activity "Schedule Asynchronous Indexing and De-indexing" and schedule the indexing job (Make sure you have executed the report RSTIRIDX_REINDEX before).
If you want to test the search go to transaction SKPR07, go to tools, select document area IWB Solar and click on "test search".
Unfortunately I don't know if there is any bether transaction for the search.
I was looking for a possibility to search from EP directly to the solman KM. But unfortunately I didnt' find a solution for this. The only way I know is to connect the solution manager over a transaction iview im EP.
Hope I could help.
Marco -
UME user search with multiple search fields (AND / OR search)
Hi,
I'm struggling with a UME user search problem. I have multiple search fields: lastname, firstname, department
Searching in this fields is working with the default IPrincipalSearchFilter.SEARCHMETHOD_AND (default)
<a href="http://help.sap.com/javadocs/NW04/current/um/com/sap/security/api/IPrincipalSearchFilter.html#setSearchMethod(int)">JavaDocs SearchMethod_AND</a>
Now I would like to add an additional search field for searching in telephone, cellphone as well. BUT searching for a phone number with searching for one of the other fields should not be a AND search. Is this possible?
Here is the actual non-working code:
Vector retVector = new Vector();
//get Userdata with IUserFactory
IResourceFactory resourceFactory = ResourceFactory.getInstance();
IURLGeneratorService urlGen = (IURLGeneratorService)resourceFactory.getServiceFactory().getService(IServiceTypesConst.URLGENERATOR_SERVICE);
IUserFactory userFac = UMFactory.getUserFactory();
IUserSearchFilter srcFilter = null;
try
srcFilter = userFac.getUserSearchFilter();
} catch (UMException e)
// TODO Auto-generated catch block
e.printStackTrace();
if(lastName.length() > 0)
srcFilter.setLastName(lastName + "*",ISearchAttribute.LIKE_OPERATOR, false);
if(firstName.length() > 0)
srcFilter.setFirstName(firstName + "*",ISearchAttribute.LIKE_OPERATOR, false);
if(department.length() > 0)
srcFilter.setDepartment(department + "*", ISearchAttribute.LIKE_OPERATOR, false);
//Here I need help!!!!!!! Please advice!!!
if(telephone.length() > 0)
srcFilter.setTelephone("*" + telephone, ISearchAttribute.LIKE_OPERATOR, false);
srcFilter.setCellPhone("*" + telephone, ISearchAttribute.LIKE_OPERATOR, false);
//if(mobil.length() > 0)
// srcFilter.setCellPhone("*" + mobil, ISearchAttribute.LIKE_OPERATOR, false);
//Set maxium value for Result and thus limit the static variable SIZE_LIMIT_EXCEEDED
//This method can only be used, if only one search attribute is specified -> thanks SAP
if(srcFilter.getElementSize() <= 1)
srcFilter.setMaxSearchResultSize(300);
ISearchResult srcResult = null;
try
srcResult = userFac.searchUsers(srcFilter);
} catch (UMException e1)
// TODO Auto-generated catch block
e1.printStackTrace();
Thanks for any help...
StefanHello,
I could still need some help. Is there no one who could give me a tip? Could I explain my problem clearly enough or do you need some more information about my problem?
Or is the search topic with searchFilter not a very common used thing?
Is there a possibility to do a search in the received search result? Can anyone explain how this would work?
Any ideas are welcome.
Regards,
Stefan -
Search with multiple "like" strings
Hello!
I have a search form (table based on pl/sql block) with 3 textfields to insert search terms.
I want to perform queries like in google, for example:
Term1: Oracle
Term2: Mangold
Term3: SQL
The result table should show ALL rows containing Term1 AND Term2 AND Term3
My code gives me all rows containing Term1 OR Term2 OR Term3...
Here is what I did so far...
(textfields are named t1, t2, t3, search destination field is named x)
select ...
from ...
where UPPER(x) like '%' || upper(:t1) || '%' and UPPER(x) like '%' || upper(:t2) and UPPER(x) like '%' || upper(:t2)
My code is:
BEGIN
q:='select ' ||
't.TAPES_PK,' ||
't.PROJECT_FK,' ||
'substr(t.TAPE_TITLE, 1, 40) TAPE_TITLE,' ||
't.TAPE_NO,' ||
't.LOCATION_FK,' ||
't.LOCATION_TITLE,' ||
't.SHOT_DATE,' ||
'substr(t.TAPE_DESCRIPTION, 1, 30) TAPE_DESCRIPTION,' ||
't.VIDEO_FORMAT,' ||
't.CLIPSCOUNT, ' ||
'TM_GET_FILENAME_FROM_PK(t."TAPES_PK") FILENAME ';
f:='from "#OWNER#"."TM_VIEW_TAPE_LIST" t where 1=1 ';
if :P201_SEARCH_STRING is not null then
wstring:='and upper(TAPE_TITLE) like ''%' || upper(:P201_SEARCH_STRING) || '%'' ';
end if;
if :P201_SEARCH_STRING1 is not null then
wstring:='and upper(TAPE_TITLE) like ''%' || upper(:P201_SEARCH_STRING1) || '%'' ';
end if;
if :P201_SEARCH_STRING2 is not null then
wstring:='and upper(TAPE_TITLE) like ''%' || upper(:P201_SEARCH_STRING2) || '%'' ';
end if;
if :P201_SEARCH_SHOT_DATE is not null then
wshot:=' and SHOT_DATE=to_date(''' ||
:P201_SEARCH_SHOT_DATE || ''' , ''DD.MM.YYYY'') ';
end if;
if :P201_SEARCH_TAPE_NO is not null then
wno:=' and TAPE_NO = :P201_SEARCH_TAPE_NO ';
end if;
if :P201_SEARCH_LOCATION <> -1 then
wloc:=' and LOCATION_FK = :P201_SEARCH_LOCATION';
end if;
q:=q || f || wstring || wshot || wno || wloc;
RETURN q;
END;
Thanks a lot
JohannShouldn't your code be:
wstring := '';
f :P201_SEARCH_STRING is not null then
wstring:=wstring || " and upper(TAPE_TITLE) like ''%' || upper(:P201_SEARCH_STRING) || '%'' ';
end if;
if :P201_SEARCH_STRING1 is not null then
wstring:=wstring || " and upper(TAPE_TITLE) like ''%' || upper(:P201_SEARCH_STRING1) || '%'' ';
end if;
if :P201_SEARCH_STRING2 is not null then
wstring:=wstring || " and upper(TAPE_TITLE) like ''%' || upper(:P201_SEARCH_STRING2) || '%'' ';
end if;
Andy -
How to do search with multiple texts across documents and rename the file with found text?
Hello:
I'm trying to do the batch search across the multiple documents and rename the file (or save as) after the found word?
In example:
I have many unique texts and would want to search across the multiple documents.
If a document is found with that unique text then, the document is either renamed or save as with that unique text.
So, I could know what unique text that file holds.
How do I do that?
Let me know.
ThanksWelcome to the forum!
When you want to post a block of code, you can enclose it with the mark ups { code }
That is the key word code surrounded by curly brackets, but without the spaces
You seem to be running a very old (and unsupported release of the database)
7.3 has not been a current release for about 10 years.
It's probably been that long since I've used this technique, but i think it should work.
You should consider welcoming your system to the 21st century by upgrading to a supported release ;-)
If you used split to chop up your export file, use cat or dd to reassemble it.
So, something like this:
mknod bk.dmp p
cat xaa xab xac xad xae xaf xag xah xai > bk.dmp &
imp SYSTEM/$PASSWD parfile=imp_bk.parfile
rm bk.dmp
$ cat imp_bk.parfile
file=bk.dmp
log=imp.log
full=y
buffer=1048576
ignore=y
commit=y let us know if still have problems.
Good Luck!
Maybe you are looking for
-
URGENT.........Process handling
hi i have problem in following code Runtime rn=Runtime.getRuntime(); Process p=rn.exec("start java myapp"); my problem is that i donot get output of the myapp in the second console that i generate by "start" i already know how to handle output stream
-
Installation of update has stuffed up my I pad mini
I have just updated my Ipad mini the latest version (so I am told) but it has stopped my I pad from working and it says that I have to restore it back to factory settings etc. and will lose my data as I dont know whether I have fully back up my photo
-
Hi There, I have two question relating to this topic: Question 1 - Can I set up an auto reply message (e.g. Thank you for submitting your enquiry....) to any emails that are only external and not including our domain to the organisation for a specifi
-
I wanna create a HTML Viewer ,that is if I type HTMLcode at the left pane then simultaneously the corresponding display should come at the right side . Please help me by telling ,which all inbuilt classes should be used for this aplication .Here THe
-
Image quality PVC300 vs WVC210
Hi, At work we are implementing a video conferencing system (I know they are intended for security but they seem to be good for conferencing too) and intend on using WVC210 and PVC300 cameras. The WVC210's will be in smaller rooms, and the PVC300's i