Custom facet is not showing up in bucket search
I am using sitecore 7.2.
I have an item bucket and I have lots of items inside that bucket. Now, the requirement is to add some custom facets in the search result view.
So, I went here: /sitecore/system/Settings/Buckets/Facets. Copied the "Author" facet and rename it to "City". Changed the facet field to "city_t" (this is the field name in index). enabled it.
But when i go to bucket search view, i don't see the new facet. Am I missing something?
NOTE: I tried the same with Sitecore 8, and the facets shows up in the search result view.
But I have to do it in sitecore 7.
See also questions close to this topic
Sitecore Bucket Item not Visible
I'm working on a custom functionality where I add an item programatically. The template that I'm using is bucketable and I'm adding it to a bucket. The thing is when I add the item it can be searched in the bucket folder but it is not visible in the content tree even if I ticked the bucket checkbox in View.
Restrict Datasource Templates
I'm trying to restrict the items shown in my multi-list. I've looked at articles like this: http://zacharykniebel.com/blog/sitecore/2014/june/26/constraining-the-sitecore-7-multilist-and-treelist-fields-with-and-without-search
I've tried implementing
DataSource=/sitecore/content/data/country sites&ExcludeTemplatesForDisplay=Country Site
But I'm still seeing both template types in my Multi-List.
Any suggestions of what else to try, I'm using Sitecore 8.2
Issue with rebuilding clear sitecore's databases with coveo
Trying just rebuild indexes on new and clear sitecore dtabases with coveo.
But it doesn't work. Indexing goes infinitely after adding 3 items to index. My log file is the next
More information about indexing...
ManagedPoolThread #7 18:08:48 INFO [Rebuilding source "Coveo_master_index - sandbox.local"] Finalizing rebuild... ManagedPoolThread #7 18:08:48 INFO [Rebuilding source "Coveo_master_index - sandbox.local"] Waiting for documents to be searchable... ManagedPoolThread #7 18:08:48 INFO [Rebuilding source "Coveo_master_index - sandbox.local"] Committed documents: 0 / 8
And after that is nothing - no errors, no warnings. Could somebody provide any thoughts about nature of this phenomena and how can I fix it?
PS. With Coveo console I have found that coveo first indexing items as expected and then just deleted it? How it's possible?
How to add itemType facet for hybris OCC
I want to be able to use the itemtype you can use in backoffice (image attach) in the rest api like this "https://localhost:9002/rest/v2/test/products/search?fields=FULL&query=:name-asc:itemType:Concrete:category:PHX";
is that possible?
im using hybris 6.4
Get same height for plots having different facet numbers, and coord_fixed?
Let me explain in pictures what I mean:
set.seed(1) ## dummy data.frame: df <- data.frame( value1 = sample(5:15, 20, replace = T), value2 = sample(5:15, 20, replace = T), var1 = c(rep('type1',10), rep('type2',10)), var2 = c('a','b','c','d')) ## Plot 1 ggplot() + geom_point(data = df, aes(value1, value2)) + facet_grid(~var1) + coord_fixed() ggsave("plot_2facet.pdf", height=5, units = 'in') #Saving 10.3 x 5 in image ## Plot 2 ggplot() + geom_point(data = df, aes(value1, value2)) + facet_grid(~var2) + coord_fixed() ggsave("plot_4facet.pdf", height=5, units = 'in') #Saving 10.3 x 5 in image
Now what happens here, that the devices have the same height, but the plots have different heights. But I would like to get the same height for the plots.
In the code above, I tried to only specify the height, but ggsave then just takes a fixed width dimension for the device.
theme(plot.margin = margin(t=1,b=1)), but this did not change anything.
coord_fixed()gives plots with the same height:
But I would like to use
Is there a solution for this, or do I need to "guess" the width dimensions of the device to get the correct plot height?
The plots should ideally be created in separate devices/ files.
Annotate faceted plot in ggplot2
I am working on the dataset reported here below (pre.sss)
pre.sss <- pre.sss <- structure(list(Pretest.num = c(63, 62, 61, 60, 59, 58, 57, 4,2, 1), stress = structure(c(1L, 1L, 1L, 1L, 1L, 2L, 1L, 2L, 2L,1L), .Label = c("[0,6]", "(6,9]"), class = "factor"), time = c(1L,1L, 1L, 1L, 1L, 1L, 1L, 8L, 8L, 8L), after = structure(c(2L,2L, 2L, 2L, 2L, 2L, 1L, 1L, NA, 1L), .Label = c("no", "yes"), class = "factor"),id = c("call_fam", "call_fam", "call_fam", "call_fam", "call_fam","call_fam", "call_fam", "counselor", "counselor", "counselor")), .Names = c("Pretest.num", "stress", "time", "after","id"), reshapeLong = structure(list(varying = structure(list(after = c("after.call.fam", "after.speak", "after.send.email","after.send.card", "after.attend", "after.fam.mtg", "after.sup.grp","after.counselor")), .Names = "after", v.names = "after", times = 1:8),v.names = "after", idvar = "Pretest.num", timevar = "time"), .Names = c("varying","v.names", "idvar", "timevar")), row.names = c("63.1", "62.1","61.1", "60.1", "59.1", "58.1", "57.1", "4.8", "2.8", "1.8"), class = "data.frame")
and I need to plot the counts of several categorical variables according to a specific level of another categorical variable ('stress'): so, a faceted bobble-lot would do the job in my case So what I do is the following:
ylabels = c('call_fam' = "call fam.member for condolences", 'speak' = "speak to fam.member in person", 'send.email' = "send condolence email to fam.member", 'send.card' = "send condolence card/letter to fam.member", 'attend' = "attend funeral/wake", 'fam.mtg' = "provide fam.meeting", 'sup.grp' = "suggest attending support grp.", 'counselor' = "make referral to bereavement counselor" ) p = ggplot(pre.sss, aes(x = after, y = id)) + geom_count(alpha = 0.5, col = 'darkblue') + scale_size(range = c(1,30)) + theme(legend.position = 'none') + xlab("Response") + ylab("What did you do after learning about death?") + scale_y_discrete(labels = ylabels) + facet_grid(.~ pre.sss$stress, labeller = as_labeller(stress.labels))
and I obtain the following image, exactly as I want.
Now I would like to label each bubble with the count with which the corresponding data appear in the dataset.
dat = data.frame(ggplot_build(p)$data[][, c('x', 'y', 'PANEL', 'n')]) dat$PANEL = ifelse(dat$PANEL==1, "[0,6]", "(6-9]") colnames(dat) = c('x', 'y', 'stress', 'n') p + geom_text(aes(x, y, label = n, group = NULL), data = dat)
This gives me the following error I really can't understand.
> p + geom_text(aes(x, y, label=n, group=NULL), data=dat) Error in `$<-.data.frame`(`*tmp*`, "PANEL", value = c(1L, 1L, 1L, 1L, : replacement has 504 rows, data has 46
Can anybody help me with this?
How to restrict a sitecore droptree field to accept only media folder item and not allow media items
I'm trying to use a droptree field to allow content editors to pick one folder item from a tree of items. Here i have to restrict the droptree field to accept only media folder item and it should not allow media items like image and videos. I have set the source as datasource:
DataSource=/sitecore/media library/User Submitted Media&ExcludeTemplatesForSelection=Jpeg,Image
The above mentioned datasource is not working. Still i am able to select both media item and media folder. Sitecore version i am using is 7.2. Am i missing anything?
Repetitive sublayout - How can I make it unique - to meet ADA requirements
I have a search box that is loaded twice - once for desktop and once for mobile.
Device determines which is displayed. However, due to ADA, the labeling needs to be unique.
Is there a way to call the sublayout and generate unique tag for each of the html elements to use?
Or, is there a way to generate a tag within the sublayout to ensure the tags are unique.
<div id="desktop"> <sc:Sublayout Path="~/site/sublayouts/Shared/QuickSearch.ascx" runat="server" /> </div> <div id="mobile-search" class="hidden"> <sc:Sublayout Path="~/site/sublayouts/Shared/QuickSearch.ascx" runat="server" /> </div>
----------- within the layout
<div class="searchtool"> <img src="/includes/images/search.png" alt="Search" style="float:left"/> <div style="float:left"> <fieldset class="search" aria-labelledby="Name">
The alt and aria-labelledby tags need to be unique.
Add External Link to Sitecore Menu and redirect to New Window
Is there any way to create application shortcut in Sitecore Menu, but it opens external link which open in new window?
I followed this How to add custom menu in Sitecore menu list but I need the external page to be opened in new window.