When I have to use KeywordSearchQuery, when should I use FullTextSearchQuery and when should I use Query in developing the search part in Visual Studio for a Sharepoint site?
I want to search information from Contact list. If any keyword is put in the search box, I wan related information in our own specified format. Which technique should I use?
I think it depends on the situation. In your case, since you are searching a Contacts list, I would recommend using a regular CAML and SPQuery.
In general:
One list, use a CAML query
Many lists, use search
Related
I'm using advanced sort for a date view web part to set up a 3 part hierarchy. One of the fields is #Meeting_x0020_Name. The # sign returns all attributes for the context node, which gives me something like 3;#2014 2nd Quarter Meeting.
I don't want to display 3;# but only meeting name. How would I do that?
I'm not using code, but only the built in functions in SP.
Use this formula:
substring-after(#Meeting_x0020_Name,'#')
Unfortunately, I don't think this is going to be possible with out-of-the-box web parts in SharePoint 2010. Sorting is a bit limited already in 2010 an there is nothing built into the out-of-the-box web parts to allow you to parse out the meeting name. You may need to consider a custom solution if this is a requirement.
I would like to use the full Lucene query syntax on an Orchard CMS based Website.
Currently, after enabling the indexing and search on Orchard, I can search on the website according to the fields I selected on the Orchard search administration page,
but I cannot perform one search on a particular field only (without changing the behavior on the entire search)
I cannot use fuzzy search...
From the logs, I can see that Orchard take care of that part (providing Lucene a good query syntax), but I would like to do it on my own.
For example, when searching "wel" on the website, Orchard will send to Lucene this query : title:wel* body:wel* (if I have the title and body fields activated on the search).
I did see some blogs that talk about coding some features to customize search, but I would like to be sure I'm not missing something before switching to developer mode :)
There are so many scenarios that can be done with search that there is no way to provide such coverage out of the box, which is why the API is very simple to use if you need custom searching capabilities.
You should copy-paste the controller from the search module and use the Parse() method of the ISearchBuilder with the escape parameter to false. This will parse a pure lucene query. You can also use the WithField("body", "value") to do simpler field search.
I don't believe anyone has released any modules that provide additional search functionality, because if you need it, it is so simple to develop ^_^ So yes, you will have to go dev mode to do custom field search
We have about 20 sharepoint internal site. so when people type coffee, sugar, it will show this webportal first (portal.foo.com/kitchensupplies) in the search. when people type computer, batteries, etc, then it will bring up this site first in the list (portal.foo.com/electronicsupplies)
does it call ranking keyword with site (or portal in this case)?
The functionality you are looking for is called Best Bets. Here's a TechNet article on how to add keyword terms with Best Bets.
I am using the Microsoft Search Server 2008 Express with WSS 3.0 for searching the wss content as well as LAN contents. I did a kind of POC where I can search the wss content and the contents that are not of wss repository but placed in the LAN. When I do a wss content search let say I have a Document Library named "Documents" where I have uploaded or created some sample documents each of which containing the keyword "Robbins", now I search the keyword "Robbins". Search result matches the Robbins and it displays the result. Now the problem is it searches all the content i.e it even displays the Task, Announcements and everything related to Robbins. Is it possible to define a scope for searching the content i.e it will not search in the unwanted areas like Task or Announcement. I mean is it possible to define a scope of search, If I do the same then it will not show me the unwanted results.
Thanks,
Tejas Jagtap
I think I understand your question, though I'm still a little hazy. If I'm off-the-mark, I apologize in advance.
Could you get by with simply turning off results display for the lists and libraries you don't want shown in the results. If you go to the Advanced Settings of any list or library, the last radio button setting is for Search (e.g., "Allow items from this list to appear in search results?"). Setting it to No removes the list/library contents from search results.
Beyond that, your options for configuring WSS search are exceptionally limited. Unlike the full-blown OSS search engine, Microsoft "black boxes" WSS to fixed scopes, crawl schedules, etc.
You can create a search scope using contentclass. This allows you to restrict results to certain types of items such as documents, tasks, etc.
Another option is to use the IsDocument managed property. This is a hidden SharePoint property that you can expose to the search engine via a scope as well.
We want to create a common document library on a certain site level and then create views on that document library in the different sub sites?
Is that possible in SharePoint?
Can it be done declaratively?
Rine
I would recommend to use the DataFormWebPart (requires SharePoint Designer to insert and customize the DFWP, the result can be exported to a feature)
The following blog entry lists a suitable SPDataSource sample:
SPDataSource and Rollups with the Data View
Good Luck!
Not out of the box. You will either need a third party "roll-up" ("roll-down") web part or you will need to write your own. OTB, views for lists/libraries are only visible at the current site level.
That being said, roll-ups (in one form or another) are probably one of the most common 3rd party seller for sharepoint (just a guess). In fact, I would bet there are several free projects out there that you could use (Check codeplex). You should have no problem finding one that meets your needs.
My suggestion would be to write your own, as this would give you some real good experience using the SharePoint object model and there really are no complicated concepts. Once you get past being able to do site navigation and accessing list data through the OM, you pretty much have all the tools you need.
Good Luck
I have found a cheep and great webpart which does a documents rollup from all subsites with search, paging and sorting functions.
http://speasysolution.miiduu.com/es-sharepoint-2010-documents-rollup
i used it, its simple and powerful