on 02-11-2009 4:32 PM
Hi all,
I have a request from an end user that we set up the search of one of our web repositories so that it will only the embedded-keywords for the documents and nothing else.
In other words, if we search for the term 'account', the hits that are returned in the search results are those documents that have the word 'account' in the embedded-keywords. If a document has the term 'account' in it's content and/or title but does not have it in the embedded-keywords, it should not show up in the search results.
It seems to me like I need a custom search component set with 'search_predefined_props' added to the 'Component for Basic Search Function'. I have done this, but my search still returns content with my search term in the contents of the file.
I have also disabled the 'Enable Standard Properties' setting in my search option set.
Can anyone help me out here?
Thanks!
-Stephen Spalding
Hi Stephen
Was it the cm_embedded_keywords-property you referenced in your custom Search Options Set as a predefined property?
Kind regards,
Martin Søgaard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Martin,
Yes, I believe that I have it set as a predefined property. In fact, I could not even get the search to match hits with the keywords until I added 'cm_embedded_keywords' to the 'Allowed Predefinted Properties' field in my Search Options Set.
The settings for my Search Options Set are as follows:
Initial Display of Search Options : unchecked
Enable Large Search Field: unchecked
Close Options After Search : checked
Enable Search Options: unchecked
Enable Further Search After Quick Search: + checked
Enable Search Scope Selection: checked
Default Search Scope: * INDEXES
Search Index IDs (csv): myIndex01
Index Groups (csv): <blank>
Root Folders for Search (Scope = FOLDER) (csv): <blank>
Enable Selection of Search Method : unchecked
Default Search Method: * AUTOMATIC
Enable Standard Properties : unchecked
Enable Result Parameters: checked
Enable Cascading Search : checked
Enable Sorting of Search Results: unchecked
Default Sorting Mode: * DESCENDING
Default Property for Sorting: Not set
Allowed Sort Properties: <none selected>
Enable Item Selection: unchecked
Default Item Selection: * ALL
Enable Language Selection: unchecked
Default Search Language Selection: * ALL
Additional Search Properties: + cm_embedded_keywords
Show Related Terms: unchecked
Max. No. of Related Terms: * 6
Max. No. of Words in Snippet: * + 15
Max. No. of Search Results per Page: * 10
Enable No. of Catogries Selection: + unchecked
Max. No. of Categories: * + 0
Enable Predefined Properties: checked
Predefined Properties (csv): cm_embedded_keywords
Fixed No. of Rows for Predef. Properties: * 0
Meta Data for Predefined Properties: + <blank>
Allowed Predefined Properties: cm_embedded_keywords
Enable Custom Properties: unchecked
Custom Properties (csv): <blank>
Fixed No. of Rows for Custom Properties: * 0
Show No. of Hits : checked
Enable Web Repository Access for Properties: + unchecked
Thanks!
-StephenS
Hi Stephen
Did you check this thread: https://www.sdn.sap.com/irj/scn/thread?forumID=42&threadID=1232221 and it's references.
If the search is done throughout all of your content, it is most often because the setting in your search options set dont have any search components to be stored in.
Try setting up the search with the search_predefined_props component visible - and the search performed through that component instead of the component for basic search or the like.
Regards,
Martin Søgaard
Hi Martin,
The thread that you asked if I viewed is this thread.
In re-reading your post, I'm not quite sure what you're asking me to do here. When you say 'Try setting up the search with the search_predefined_props component visible', do you mean to have that component added in the 'Component for Basic Search Function'? I've already tried that and it's search on the content as well as the keywords.
Also, I have tried putting search_predefined_props in the 'Component for Search Options' area with just standard_search_input in the 'Component for Basic Search Function'. It still searches both content and keywords. I just want it to search the keywords.
I've got my web repository set up so that I'm only indexing three documents. Two of the documents have the word 'dinosaur' set up as a META keyword, and the other document has 'dinosaur' in it's content. I'm trying to get the search to only return the two results with 'dinosaur' in the META keyword.
Any other thoughts?
-StephenS
Hi Stephen
Sorry about the wrong link, Ill try again: https://www.sdn.sap.com/irj/scn/thread?messageID=6173679#6173679
In essense I think you should try to use a search component set like the one I mention below, where you at the same time makes sure that the search option set displays the search components (enable search options = checked, and enable predefined properties checked with the property in question entered in "predefined properties (csv)" and the property checked in "Allowed Predefined Properties").
When you test, you will have to perform your search in the "Filter by predefined properties" search component as the normal search will always search displayname, description and content.
OK, try this specific search component set:
Component for Basic Search Function
standard_search_input
Component for Search Options
standard_search_scope
search_predefined_props
Hope it helps.
Best regards,
Martin Søgaard
Hi Martin,
I believe that you have answered my question for me. Our end user is wanting the search to only search keywords straight from the normal search input box. You had mentioned that 'the normal search will always search displayname, description and content'. I gather that there is no way to do what our user is wanting without writing a custom Search Component?
By the way, I tried what you mentioned regarding the settings in the Search Option Set and the Search Component Set, and it worked exactly as you had described. The normal search returns all matches (hits on content and keywords). If I perform the search from the 'Filter by Predefined Properties' box, it only returns hits on keywords.
-StephenS
Hi Stephen
Sounds good that I answered your question - unfortunately without solving your problem.
You can try with a mix of the available search components to see if you can match the end user needs. In my experience it is normally hard to exactly meet the demands from the customer/end user with the available search components.
The answer is to develop a search component which can be a difficult task (no matter what SAP says). But with an experienced java developer and if you decompile the components with relation to predefined properties for inspiration, I think you'll do fine.
Best regards,
Martin Søgaard
Hi Stephen,
Probably you will be using a search iView and hence you can mention a search option and search component.
In that case, i would like you to do this configs and run a test.
I dont have a web repository manager setup to do the test.
I have created a search option and in there, i have mentioned Predefined Property(csv) = cm_embedded_keywords and Fixed number of predef properties = 1.
And in the search component set, only in the component for
Basic search function=
search_predefined_props,
standard_search_button
standard_search_scope
Then these two names are mentioned in the Search iView.
Will you let me know how this go? A bit curious...
Regards
BP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Anyone?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.