Link to home
Start Free TrialLog in
Avatar of QPR
QPRFlag for New Zealand

asked on

List items in search results

Some users aren't too happy with their user experience for the search function of their site and I'm wondering what, if anything, can be done to address this.
This particular site contains FAQs in lists, the idea being that they can search for a keyword and relay the answer to the relevant FAQ over the phone.
So, when they search they are mostly given results that point to the list itself and the indivdual list item.

If they click the link (search result) for the list itself they are taken to the list and then have to scroll through to find the search criteria.

If they click the search result which points to a list item they get the list dialogue window which is full screen which means they lose most of their navigation e.g. breadcrumb trail or search results page.

Not all are happy using the back button.

Is there a way to have list items (from search results) show in the normal lightbox window as opposed to full screen?
Avatar of GeorgeGergues
GeorgeGergues

Hello ,

This is a very common problem implementing Search out of the box.


First , you need to define what you're looking for .

For example  in your search string , if you only put

"Dog" - > that is more of a Keyword search and that will bring

Site : Dog
List : Dog
Subject : Dog
and so on

In that order

but if your search is

Dog & ContentType:"Item" & sitename:http://MyInformationSite

that will bring the Items that has Dog  and not the Lists or Documents for example

Give it a shot and let me know if that worked

Best of luck.
I am sorry about that but the correct syntax require '='

Dog & ContentType="Item" & sitename:http://MyInformationSite

Open in new window

Avatar of QPR

ASKER

Hi george, how do I implement this?
Other than setting up search scopes/crawls I have little or no experience with the user side of search.
We need list items and docs returned, but not the list the keyword lives on.
But also a way to navigate back from a list items to the search results... maybe having the item show in a dialogue window on top of the search results?
that is what you need to enter on the search box.

If that works I will walk you through creating the search pages etc.
Avatar of QPR

ASKER

this works
Dog & ContentType="Item"
No need to define the site as the default context is "this site"
Perfect,

The next step is to create the search page with the proper webparts

All you need is three webparts

SearchBox
CoreResults
Results Paging.


On the searchbox you have a few settings

[1] Additional query terms  : append the
& ContentType="Item" & sitename:http://MyInformationSite

Open in new window


[2] Target result page is itself so place this url .
./

Open in new window


That is all, things should work fine now.

Best of luck.
Avatar of QPR

ASKER

But what about documents? I need to include them in the search results if applicable.
Also, is there a way to have the items that are included in the search results open in a dialogue window rather than full screen? This way the user can close the dialogue window and remain at the search results
ASKER CERTIFIED SOLUTION
Avatar of GeorgeGergues
GeorgeGergues

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of QPR

ASKER

Sorry, the results should be items and documents, can I add multiple contenttypes to the querystring?
Thanks for all the help so far it's been great.
A lot of things seem quite complex in SP. I'm from a SQL/ASP.NET background and this sort of thing could be coded fairly easily but with SP there seem to be so many obstacles and/or forests to hack through to do something
Avatar of QPR

ASKER

although saying that it's a lot easier when someone teaches you well :)
ok I have the search page posting back to itself (if that terminology applies to SP)
I have 2 additional web parts, results and paging. So far so good!

I go to the results web part and click edit web part and under display properties I see the XSL editor, is this the right place? It is greyed out so I can't click the button to paste your text in
that is not common ,
,make sure you are editing the XSL Style on the Core Results webpart

also try IE or Chrome not Firefox.

Avatar of QPR

ASKER

I have 3 parts: search box, results, and paging.
This is the "edit web part" display for the search results one.
(image)

Also, when I first arrive at the page it gives me the message:

"No results are available. Either no query is specified, or the query came from advanced search (Federated Webparts do not support Advanced Search queries)."

I haven't searched for anything yet! Also when I do search and there are no results it gives no message... almost like the page is behaving back to front
I didn't get the image , but I have a question
Did you search for an item that you are sure exist and crawled with the regular search .

did that show up ?
Avatar of QPR

ASKER

sorry forgot the image.... this time.
And no, I search for something that I knew didn't exist so I could see what the "no results message" looked like - there was no message
webpart.png
uncheck the Use Location Visualization.
Avatar of QPR

ASKER

cool thanks, I've replaced the existing XSL with your example and I don't see any change.
List item search results still open in a full window and when the "close" button is clicked the user is taken to the list page.
it is only planned to open in a new window .

You can research how to open in the same window

Search for these terms

"SharePoint XSLT Modal window ", you might find someone who figured out a way .


Avatar of QPR

ASKER

oh ok, in that case it isn't opening in a new window. Sorry I missed that bit.
It loads on top of the search page (replaces)
Avatar of QPR

ASKER

Sorry George I forgot about this Q when I got dragged away to other projects. I have managed to exclude lists and docs and also get search result (clicks) to open in a new window thanks to your help
Avatar of QPR

ASKER

Great help, thanks