Prefix search with tuples
Hi,
I have keys which are composed of a fixed-length byte array and two strings, serialized (in that order) using tuple binding. I would like to retrieve all entries with a given value for the first field (ignoring the string fields).
What's the correct way to construct the min and max keys for a range search?
From reading the tuple serialization docs it seems that this should work: (bytes, "", "") --> (bytes, null, null) - is that guaranteed to match everything with that byte array?
Thanks.
PS I know I could use a secondary index for this, but that seems wasteful.
Hello,
Yes, that should work to produce begin/end inclusive keys, because "" is represented as zero and a null String as 0xFF.
Another approach is to create exclusive keys with the first component only present, but I think that would be more complex in this case.
Yes, using a range search instead of a secondary key is the correct approach, for best performance. Every secondary index uses disk and memory space.
--mark
Similar Messages
-
How to use ADF Query search with EJB 3.0
Hi,
In ADF guide http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/web_search_bc.htm#CIHIJABA
The steps to create query search with ADF Business Components says:
"+From the Data Controls panel, select the data collection and expand the Named Criteria node to display a list of named view criteria.+"
But with EJB, I'm not able to find Named Criteria node. Can we use ADF query search component with EJB? If yes, can you please show me some example, tutorial etc.?
Thanks
BJFor EJBs you'll need to implement the query model on your own.
An example of how the model should look like is in the ADF Faces components demo.
http://jdevadf.oracle.com/adf-richclient-demo/faces/components/query.jspx
Code here:
http://www.oracle.com/technology/products/adf/adffaces/11/doc/demo/adf_faces_rc_demo.html -
somethings i type something in the address bar, like 'paypal', mozilla used to go straight to that website, which was helpful... then it started searching with google, this i was not too upset about... however now it has started searching with yahoo, this i am upset about, and i would like to change this, however i do not know how?
1. Use free AdwareMedic by clicking “Download ” from here
http://www.adwaremedic.com/index.php
Install , open, and run it by clicking “Scan for Adware” button to remove adware.
Once done, quit AdwareMedic by clicking AdwareMedic in the menu bar and selecting
“Quit AdwareMedic”.
2. Safari > Preferences > Extensions
Turn those off and relaunch Safari to test .
Turn those on one by one and test.
3. Safari > Preferences > Search > Search Engine :
Select your preferred search engine.
4. Safari > Preferences > General > Homepage:
Set your Homepage. -
How to enhance the standard search with custom field?
Hi all,
I would like to know the general optimal procedure to enhance the standard searches like Opportunity search or Lead search.
I've gone through some of the threads here. Some suggest, to add the new field using AET and copy the IMPL class of the search and then code the custom logic. Some say, append the new field to the structure of the search object and then implement the BADI.
I'm actually a bit confused to understand the correct procedure.
Can someone please help me with a generic procedure to enhance the standard search with a custom field?
Thanks in advance.Hi Maren,
Once I have got the same development. I have followed the below steps, please check with this. Let me know for further inputs.
Add new field using Append structure of type ‘XXX’ in search
Create BADI implementation for Enhancement spot ‘ES_CRM_RF_Q1O_SEARCH’ and include filter ‘BTQOPP’
Put your logic in BADI implementation – SEARCH method
Add it in WebUI configuration
Remove the operator if required
Regards,
Swadini Sujanaranjan -
Searching with in a SharePoint 2013 Document Library
Hi,
i want to search document library by passing values from Search box to Search Results webpart. I m not able to search with in the document library although i have configured content source and result sources.
With Regards,
Jaskaran SinghYou can try using a web form html webpart in a web part page instead.
Use Designer to add additional search columns and you should be able to create something usable.
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem. -
How to customize quick query to search with SQL in contain keyword
I want to build simple query using quick query component. But it will search with SQL equal keyword. How can I customize it to use contain keyword instead. That means, I enter 'sc' to return 'scott'.
Not sure if the technique described here http://tompeez.wordpress.com/2011/08/21/extending-viewcriteria-to-use-sql-contains-4/ can be used for quick query, but you can try ...
Timo -
How to replace a qualified table with Tuple
Hi Experts!
I have a Qualified table woth 2 non qualifiers,which refer to 2 lookup flat table and one text field which is Qualifier.
Now I want to replace this design with tuple.Please give me steps to do so and also how is the linking of field relation maintained in Tuple.
Thanks
RavzHi Ravz,
Please refer the complete section 5. Migrating from Qualified Lookup Table to Tuple
Here, must check Page No 48/58 example for converting Qualified tbale to Tuple. It will solve your problem.
Sample: Manufacturer Part Number (MPN) in standard Products repository
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80765a21-78f3-2b10-74a2-dc2ab57a1bd2?quicklink=index&overridelayout=true
Regards,
Mandeep Saini -
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.
-
Personalized Simple Search with new messageLovInput - Search does not work
I have currently set an Message LOV Input into a Simple Search Panel for IcxPorRcvSrchPG.
I have got the LOV bringing back the correct values, but when I hit the GO button the Search does not work.
Can someome please help me on how I am able to get the search working in the Simple Search Panel.
Details of VO's are as follows:
xxReceiveItemsDueVO (extended from ReceiveItemsDueVO)
xxReceiveMyItemsVO (extended from ReceiveMyItemsVO )
xxReceivePurchaseItemsVO (extended from ReceivePurchaseItemsVO)
xxReceiveReqItemsVO (extended from ReceiveReqItemsVO)
Extended Attribute I am looking to search with is xxWono.
Current search items are working 100% with extended VO's, but when I try and search with new item, I am having no luck. The search is acting as though the new item has not even been created.
Additional Lov Details are as follows:
Level: Site
Item Style: Message Lov Input
ID: xxWONumSearch
Data Type: VARCHAR2
External LOV: /oracle/apps/icx/lov/webui/WorkOrderLovRN
Prompt: Work Order Number
Search Allowed: False
Search Criteria: False
Lov Map
ID: xxWipEntityName
Criteria Item: xxWONumSearch
LOV Region: WipEntityName
Programmatic Query: False
Required: False
Return Item: xxWONumSearch
Framework version: 11.5.10.6RUP
Is there a way of doing this through Personalization?
With the version of framework I am not able to add a simpleSearchMapping through Personalization.
Can someone please advise?
Thanks
LeeWhen I generate and then view the help, it looks perfect! I changed the name of the project folder since the information is proprietary. I have several pictures including the parent folder and the only 3 folders that are generated. I cannot find the Webhelp output folder. I think this is what you need to see.
-
IFS Searching with other Search Engines
Is it possible to set up iFS searching with or without interMedia) that would work with a search engine for static pages, like Infoseek?
From an "end-users" point of view, I would like to have them search for a document, some of which may be stored in the database, but others are html pages used for the site.You would have to write a custom program which would submit searches to IFS and to your Infoseek search engine, and then combine the results for the end user.
Or you could use iFS and Intermedia to index the static HTML pages. -
JSF, encoding, do not working search with non english words!
All my pages UTF-8, Database charset set UTF-8, My search with russian words does not working, How can I improve it?
Update: It seems to be related to the themeLinks in the JSP. I got it working for a second by adding in a missing themelinks link... but it's not working anymore. Huh.
Ideas? -
Search with "Current Node + All Subfolders" not functioning correctly
Hi,
We are having an issue with the search function of SCCM 2012 Admin Console. We have built multi-level folder structure to SCCM which matches our organizational unit structure in AD.
The issue occurs when trying to search with "Current Node + All Subfolders" option in a folder to get listing of all collections nested in the structure. As a result we get incomplete list of collections and majority of them are not showing
up. Sometimes the console even crashes when trying to do this kind of search. Note that this behaviour only occurs when searching inside a folder, not in the device collections root node.
We managed to trace the SQL query in the above situation from SMSProv.log, and it is as follows:
select all SMS_Collection.SiteID,SMS_Collection.CollectionType,SMS_Collection.CollectionVariablesCount,SMS_Collection.CollectionComment,SMS_Collection.CurrentStatus,SMS_Collection.HasProvisionedMember,SMS_Collection.IncludeExcludeCollectionsCount,SMS_Collection.IsBuiltIn,SMS_Collection.IsReferenceCollection,SMS_Collection.LastChangeTime,SMS_Collection.LastMemberChangeTime,SMS_Collection.LastRefreshTime,SMS_Collection.LimitToCollectionID,SMS_Collection.LimitToCollectionName,SMS_Collection.LocalMemberCount,SMS_Collection.ResultClassName,SMS_Collection.MemberCount,SMS_Collection.MonitoringFlags,SMS_Collection.CollectionName,SMS_Collection.PowerConfigsCount,SMS_Collection.RefreshType,SMS_Collection.ServiceWindowsCount from vCollections AS SMS_Collection where (SMS_Collection.SiteID
in (select all Folder##Alias##810314.InstanceKey from vFolderMembers AS Folder##Alias##810314
where (Folder##Alias##810314.ObjectTypeName = N'SMS_Collection_Device'
AND Folder##Alias##810314.ContainerNodeID in
(16777237,16777374,16777384,16777385,16777375,16777376,16777377,16777378)))
AND SMS_Collection.CollectionType = 2) order by SMS_Collection.CollectionName
From this we noticed that not all ContainerNodeIDs are searched, but a list of only 8 ContainerNodeIDs. These ContainerNodeIDs remain the same if the search is done again in the same folder. The same behaviour repeats also in other folders with a different
list of ContainerNodeIDs.
For clarification I'll attach a picture which shows our folder structure with ContainerNodeIDs and ParentContainerIDs. We have also marked the containers which were present in SQL statement. From this you can clearly see there should have been far more ContainerNodeIDs
than listed in the SQL query. Is this a bug in the admin console or could this be a problem with our site database? Is anyone else experiencing similar issues? We have written a custom
powershell script that reads containers from SMS_ObjectContainerNode WMI-class recursively and is able to return complete list of folders and their subfolders, so we assume that our site database and WMI on site server is functioning correctly.
We noticed this on CU2 (could have been present also earlier) and updating to CU3 did not fix the problem. Currently we are running SCCM 2012 SP1 CU3 with one primary site. All components besides distribution point is running on the site server. Distrubution
point is running on a separate server. Our SQL server is running on the site server.
Best Regards,
Juha-MattiSorry for the very long delay. I created the ticket in the autumn of last year and just received the final verdict to this issue.
Microsoft support said they were able to reproduce the problem and that they contacted the product group about this issue. It turns out that this behaviour is by design (wait, what?) and since it is by design there is nothing they
can/will do about it.
So the only choice is to request a tailored customization for SCCM2012, which probably in this case (as it is by design) would cost.
I feel a bit puzzled: how can it be by design if it clearly does not work? -
Using iMac and Maverick OS. I have Chrome as my default browser. I find that going to System Preferences/General under default browser, I note that Chrome is chosen as default, yet the browser "above the line" is Safari and Chrome, while checked off is "below the line". In other words, the top listed browser is Safari which is unchecked with a line underneath, even though all the other browsers are listed below the line and only Chrome has a check mark.
When I am on a website and I select words to search in Google, it always searches with Safari instead of Chrome. How do I change that?Thanks for your response. I think it was my error in that I did not define the problem properly. Indeed Chrome is my default browser. And Maverick does not have a "next line" to default to Google. I can do that in the Chrome settings.
My problem is that when I am in another application.....and it is apparently an application native to Maverick....for example Contacts or Calendar, Reminders, Notes, etc., if I highlight a word or phrase, and right click and choose "search with Google", it defaults to Safari. How do I change that? -
Google is set as my search engine but whenever I search something in the address bar it searches with Yahoo! How do I get rid of Yahoo! as my search engine when it is not even set to be my search engine in the first place?
1. Use free AdwareMedic by clicking “Download ” from here
http://www.adwaremedic.com/index.php
Install , open, and run it by clicking “Scan for Adware” button to remove adware.
Once done, quit AdwareMedic by clicking AdwareMedic in the menu bar and selecting
“Quit AdwareMedic”.
2. Safari > Preferences > Extensions
Turn those off and relaunch Safari to test .
Turn those on one by one and test.
3. Safari > Preferences > Search > Search Engine :
Select your preferred search engine.
4. Safari > Preferences > General > Homepage:
Set your Homepage. -
I've meticulously created collections of the music on my ecommerce music site. I am manually stripping off offending characters in the submitted search criteria with this code:
Trim(REReplaceNoCase(URLDecode(URL.searchcriteria),"[()<>##""'@]"," ","all"))
Then, if the user has ticked for an "exact word" search, I'm adding double quotes around it, otherwise, leaving it without. Then submitting it to the right collection for a search with this code (I've substituted ZZZ and XXX for my protection).
<CFSEARCH NAME="ZZZ" COLLECTION="XXX" type="simple" CRITERIA="#cleanedcriteria#" maxrows="300">
When a user does not tick "exact match" but types in any phrase that includes any of the Verity operators, they get the following error:
If you are using type="explicit", you must use Verity Query Language operators such as "<WORD>" or "<STEM>", or surround your search term with quotes. See the documentation for details.
Pass Me Not
will throw the error. but
"Pass Me Not"
which is passed when someone ticks "exact match" does just fine.
From what I've read, the simple search is supposed to assume the <WORD> and <MANY> operators, but it's like that's being ignored. What am I doing wrong, and/or how can I configure this so that my users can type terms, submit, and find what they're looking for?I think I finally understand, and am posting the solution here for others' benefit.
Apparently the simple search is in fact behaving properly and will recognize AND OR NOT as operators instead of part of the search string. The work around for this is to enclose those words in double quotes. So that's what I've done. If the user has not specified an "exact match" search (where I enclose the entire string in double quotes), then I single out these three words and put double quotes around them. It appears to work beautifully.
QED, and am happy to have had a complete uninterrupted discussion with myself.
<cfset cleanedcriteria = ReplaceNoCase(cleanedcriteria,"and","""and""","all")>
<cfset cleanedcriteria = ReplaceNoCase(cleanedcriteria,"not","""not""","all")>
<cfset cleanedcriteria = ReplaceNoCase(cleanedcriteria,"or","""or""","all")>
Maybe you are looking for
-
N-gage does not work after Update
Hi! If you know of any threads that handles my problem, please tell me! What I have done: I installed the N-Gage on my N95 choosing the 8GB memory card as the install place. Current Software was: 20.0.015 I downloaded and paid for the game "Creatures
-
External Hard Drive Won't Mount- Need to recover files
Hello Everyone, I am hoping that one of you fine mac experts may be able to assist ~ Problem: External Seagate FreeAgent Desktop USB external hard drive won't mount on desktop=ie: no access to my important files.. Please Help! Details: External seaga
-
Problem with Object returning previously set values, not current vlaues
Please help if you can. I can send the full code directly to people if they wish. My problem is I enter title details for a book via an AWT GUI. When the user clicks the OK button it should display a new screen with the values just entered by the use
-
Recording through line in on a v p
hi Alli have just bought the above and i am really pleased with it but i have one question, as i am a certain age i purchased the above so it would be easy to put some of my record collection onto my v plus ( via the line in) i was wondering if anyon
-
Error when reverse return delivery
Hi, Our plant is with warehouse management. I created a return delivery. After post goods receipt, transfer request was created automatically. Then I created and confirmed the transfer order with reference to transfer request. Now I realized I should