Refiner based on URL
I have 2 Content Sources crawled to URL1 and URL2.
While searching in 'Everything' navigation link, I need to have a URL1 refiner on the left that shows only contents from URL1.
Can I do that?
If you want to refine based on content sources you have a managed property called contentSource , make sure it's refinable property by
Go to central administration
manage service application
Search service
Search Schema
edit the managed property
make sure it's refinable (Yes-Active)
afterwards in the search results page edit the refinement webpart and click choose refinement and choose content source
The refiner names will be same as the content source names
Hope that helps|Amr Fouad|MCTS,MCPD sharePoint 2010
Similar Messages
-
Different links in the detailed navigation, based on URL alias
<u>What I'm trying to do :</u>
Based on URL aliases /irj/portal/individual or /irj/portal/business
I will dynamically add an UME group to the already logged in user.
<u>Filter :</u>
If clicking on /irj/portal/individual I will store "group=individual" in the context, and add UME group individual, if clicking /irj/portal/business I will store "group=business" in the context, and add UME group business and remove individual, and then redirect to the same URL.
<u>Configuration</u>
Each UME group has a one-to-one mapping to a Portal role.
I will place an ACL on the PCD content, based on group, hiding/showing aggregated folders, hanging under the roles.
<u>Wanted end-result</u>
Different links in the detailed navigation, based on URL alias.
<b>My question is how you would implement the filter part, mentioned above ?</b>
Portal app or J2EE servlet filter or something else ?Hi sunil,
Create a JSPDynPage component(C) having 2 hbj:link whose hrefs point to these 2 iViews(A and B). U can get the href of the iView by previewing it(for A and B). Create an iview from the par component (C) and add it to the DLN so that it shows the links to ur iViews(A and B). U can make the Show Tray property of this iView (C) to false.
Regards,
Harini S -
How to do http session stickiness based on URL patterns?
Is there a feature within the WL plugin for Apache that would allow me to emulate the "jvmroute" session stickiness behaviour as provided by Tomcat and its plugin. I would like to have the control to tie requests from http clients to particular WLS servers in a cluster depending on the URL. For example http://foo.com/web01 requests would be forwarded to an appsererver app01 and so on. For all other requests (e.g http://foo.com/web), the WL plugin would do its normal load balancing ignoring the stickiness. From my understanding the WLS inbuilt http session stickiness is based on JSessionIDs which are exchanged using cookies - which is something i cannot use in my case since i want the stickiness based on URL patterns.
I am using WLS 10.0 with Apache 2.2.4 on Linux.
Thanks
RamdasSession is not replicated across all the servers in the Cluster.
Apache knows which server to go using the JSession ID.
There is a concept of primary and secondary, secondary is selected based on the replication groups there are configured in the cluster.
you can configure the cluster so that /web01 requests go to different cluster, and /web requests go to different cluster.
but you can get all the funtiionalities from the single cluster.
Do you have any java caching that you are not able to replicate across the cluster ?(I know this can be done too).
let me know what you are actually trying to solve by doing the behavior you explained. -
Decision based on URL Parameter
Hi,
I want to make a decision in the GP based on URL Parameter.
I have an application with url that has the ID in the url address and takes out the data from the DB based on the ID if there is no ID then this is a new Form.
If this is a new Form (no ID in URL) I need to call Application A and then B and then send mail and so on...
If this is an saved Form (with ID in the URL) I need to call Application B and then send mail and so on...
I tried to do it with Decision (predefined value) but no luck.
Any suggestion?
Regards,
SilvyTry implementing that logic into a PhaseListener and see which phase suits you best.
-
ACE 4710 - can I dynamically sticky all traffic to 1 server based on URL?
Hello all, I'm new to the ACE 4710 and need to know some details about stickyness.
As background, we are a small company with a SaaS product and a pair of webservers.
I have set up the loadbalancing default L7 Load-balancing rule to sticky based on a Cookie based Stickey Group.
That seems to be working and session traffic is sticking to a server during the user's session.
Based on a request from our outsourced developer they would like the Loadbalancer to not only sticky the users sessions, but also sticky a url to a server.
I would like this to happen dynamically as each of our clients will have their own url based on our standard domain like clientname.fixeddomain.com and I don't want to have to come back to the loadbalancer every time we add a client.
As I said, I'm new to these devices but understand the concepts, and am in the position of having to make it work little to no tranining on this hardware and no budget at this point to pay someone else for configuration and setup.
I just need to know at this point if I can stick all requests for a specific URL to a server to avoid caching issue while those sessions are active and have new connections to other client urls balanced among the webservers.
Hopefully this request makes sense.
Thanks,
Mark Steeves.Daniel,
Thanks for the reply, but I cannot reach the URL you included. It gives me a 403.
Therfore without reading the article, I wanted to ask if the proper setup would be:
1. Default L7 load-balancing action: Primary action: Sticky: Stickey Group using
Type = HTTP Header: Header name = Host
2. Server Farm: Predictor: Least Connections or Round Robin to distribute the load between the 2 web servers.
Using this setting in testing, it looks like all the traffic keeps going to 1 server only. Granted there is not much traffic t the servers, but I have 2 different url being tested. url1.ourdomain.com & url2.ourdomain.com
If you have another link for the above document, please let me know.
Thanks,
Mark Steeves. -
ACE 4710 Redirect to Different Server Farm based on URL
I have a weblogic 11 serverfarm where i want to redirect to a different serverfarm based on the URL. I am able to do it and it appears to be working however I am having issues with the cookies. I seem to be getting logged out of our App when switching between the serverfarms. Is there any way to fix this issue? My configuration is below.
Thanks!
-Andy
Generating configuration....
crypto chaingroup WWW-PROD-CHAINGROUP
cert AddTrustExternalCARoot.crt
cert COMODOHigh-AssuranceSecureServerCA.crt
access-list allow line 8 extended permit ip any any
probe http HTTP_PROBE
port 7001
interval 10
passdetect interval 5
request method get url /login.jsp
expect status 200 299
connection term forced
probe icmp PROBE_SERVICE_ICMP
interval 5
passdetect interval 5
receive 5
probe tcp TCP7001_PROBE
port 7005
interval 5
passdetect interval 5
receive 3
connection term forced
open 2
rserver redirect REDIRECT-TO-HTTPS
webhost-redirection https://%h%p 301
inservice
rserver host WLS11Host1
ip address 192.168.211.250
inservice
rserver host WLS11Host2
ip address 192.168.211.14
inservice
serverfarm redirect REDIRECT-SERVERFARM
rserver REDIRECT-TO-HTTPS
inservice
serverfarm host SPEND-FARM
probe HTTP_PROBE
rserver WLS11Host1 7001
inservice
serverfarm host WLS11FARM
probe HTTP_PROBE
rserver WLS11Host2 7001
inservice
parameter-map type http HTTP-PARM
persistence-rebalance
set secondary-cookie-start none
parameter-map type http PARSE
persistence-rebalance
set header-maxparse-length 8192
length-exceed continue
parameter-map type ssl SSL_MAP
cipher RSA_WITH_RC4_128_MD5
cipher RSA_WITH_RC4_128_SHA
cipher RSA_WITH_3DES_EDE_CBC_SHA
cipher RSA_WITH_AES_128_CBC_SHA
cipher RSA_WITH_AES_256_CBC_SHA
sticky http-cookie ACE_COOKIE-7001 7001_STICKY
cookie insert browser-expire
serverfarm WLS11FARM
replicate sticky
sticky http-cookie ACE-COOKIE-SPEND SPEND_STICKY
cookie insert browser-expire
serverfarm SPEND-FARM
replicate sticky
ssl-proxy service WWW-PROD-SSLPROXY
key client_ssl.pem
cert pastar.crt
chaingroup WWW-PROD-CHAINGROUP
ssl advanced-options SSL_MAP
class-map type http loadbalance match-any HTTP-MARKETING
2 match http url /index.html
class-map type http loadbalance match-any HTTPS-SPEND
2 match http url /spend/.*
class-map type http loadbalance match-any L5
2 match http url /.*
class-map match-all WLS-7001-CLASS
2 match virtual-address 192.168.215.28 tcp eq www
class-map match-all WLS11-HTTPS-CLASS
2 match virtual-address 192.168.215.28 tcp eq https
policy-map type loadbalance first-match HTTPS
class HTTPS-SPEND
sticky-serverfarm SPEND_STICKY
insert-http x-forward header-value "%is"
class L5
sticky-serverfarm 7001_STICKY
insert-http x-forward header-value "%is"
policy-map type loadbalance first-match WLS11-7001-Policy
class HTTP-MARKETING
sticky-serverfarm 7001_STICKY
insert-http x-forward header-value "%is"
class HTTPS-SPEND
serverfarm REDIRECT-SERVERFARM
class L5
serverfarm REDIRECT-SERVERFARM
policy-map multi-match WLS11-SLB
class WLS-7001-CLASS
loadbalance vip inservice
loadbalance policy WLS11-7001-Policy
loadbalance vip icmp-reply active
nat dynamic 1 vlan 1000
appl-parameter http advanced-options HTTP-PARM
class WLS11-HTTPS-CLASS
loadbalance vip inservice
loadbalance policy HTTPS
loadbalance vip icmp-reply active
nat dynamic 1 vlan 1000
appl-parameter http advanced-options PARSE
ssl-proxy server WWW-PROD-SSLPROXY
interface vlan 1000
ip address 192.168.215.27 255.255.255.0
access-group input allow
nat-pool 1 192.168.215.28 192.168.215.28 netmask 255.255.255.255 pat
service-policy input WLS11-SLB
no shutdown
ip route 0.0.0.0 0.0.0.0 192.168.215.1
snmp-server community poweradvocaterw group Network-MonitorHi,
So when you come with " http url /index.html", you go to "sticky-serverfarm 7001_STICKY" and ACE must be inserting sticky "ACE_COOKIE-7001". Now when you get redirected because you match "HTTPS-Spend", ACE will loadbalance the request which will now come on HTTPS and insert sticky " ACE-COOKIE-SPEND". That's why i guess you see two sticky entries. Now i guess ACE will keep the connection to servers in "sticky-serverfarm SPEND_STICKY" or you see that ACE is not doing the same or you expected the ACE to send the requested to "sticky-serverfarm 7001_STICKY" even though it matches the HTTPS-Spend class-map condition?
Regards,
Kanwal -
Redirect http requests to different servers based on URL
You can use a reverse proxy to do this, but if you have a single IIS box in a DMZ you can also use IIS ARR (Application Routing Request) to do this for you.
https://knowledge.safe.com/articles/How_To/Using-IIS-and-ARR-as-a-reverse-proxy
You may find better articles if you look, but it is easy enough to do.Hi,
We have an internet connection (with a single IP address) where I need to share access to different internal servers based on the requested URL.
I.e.:
http://url1.domain.com -> webserver1
http://url2.domain.com -> webserver2
etc.
It's http traffic only (no https).
How do I accomplish this? I assume some kind of proxy server-thing that all requests go to? It should be on the Windows platform as we don't want to introduce a Linux "black-box" that noone knows anything about in a production environment.
Thanks for any ideas and/or suggestions :)
This topic first appeared in the Spiceworks Community -
Insert Text file based on URL Parameter
Hello! I have been able to get data to load using PHP into my
document. BUT - that is only data that is IN the URL. So, for
example, the URL might be ...index.php?profile=123456789
In that case I can make the customer ID appear in all the
other URLs on the page.
i.e. : <a href="page2.php?profile=<?php echo
("$profile"); ?>">Click Here</a>
Today, I would like a section of code (probably in a text
file) to load in the page based on a parameter in the URL.
Something like a URL ...index.php?destination=Australia
And then in the body would something like "load australia.txt
file here".
I know this is probably bigger than I am making it sound. But
I don't know how to load a chunk of code inside another chunk of
code.
Any starting points would be much appreciated. Are there any
built-in Dreamweaver CS3 features that do this?
JonThe purpose is to enter an earnest money dollar amount (Real Estate Short Sale contracts), and based on the amount, a corresponding file with a copy of a check with the proper amount will be inserted into the file at page 16. A button would be fine , but it needs to be on the earnest money deposit line (the look of the form may not be altered). The earnest money amounts are $1,500, $2,000, $2,500, $3,000, $3,500, $4,000, $4,500 and $5,000.
-
Launch services query based on URL protocol
Heyaz. Technote 2017 describes a means of using LSGetApplicationForInfo() to query Launch Services to see what application is available handling a specific file extension (e.g., .html).. I am curious if the same call can be used to query based instead on URL protocol (e.g., afp:, https:, etc.). Also, am curious if the same API is available in the iPhone beta 8 SDK.
cheers,
Scotthttp://developer.apple.com/documentation/Carbon/Conceptual/LaunchServicesConcept s/LSCConcepts/chapter2_section_8.html#//apple_ref/doc/uid/TP30000999-CH202-DontLinkElementID11
No clue if LaunchServices is available on the iPhone. -
I have a region based on a URL, but it does not work with https! It looks like a limitation of SYS.UTL_HTTP or am I missing something.
I can get around it by using an iframe, so what is the benefit of SYS.UTL_HTTP?
Cheers SimonThanks John, I am just reading the documentation on Oracle Wallet Manager now. I'll get our DBA to set one up for me.
Is UTL_HTTP a better solution for embedding a web page than iframes?
Simon -
ACE load balancing based on URL
I am trying to send traffic to one server or another based on the URL. I want traffic to foo.com/selfserv to direct to server A and traffic to foo.com/webui to direct to server B. I found URL inspection etc but I am not sure how to apply it the scenario as I do not want the ACE to inspect all inbound HTTP requests.
The ACE performs regular expression matching against the received packet data from a particular connection based on the HTTP URL string. To configure a class map to make Layer 7 SLB decisions based on the URL name and, optionally, the HTTP method, use the match http url command in class-map HTTP load balance configuration mode.
The ACE performs regular expression matching against the received packet data from a particular connection based on the RTSP URL string. You can configure a class map to make Layer 7 SLB decisions based on the URL name and optionally, the RTSP method, by using the match rtsp url command in class-map RTSP load balance configuration mode.
Configuring Traffic Policies for Server Load Balancing:
http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/ace_appliances/vA3_1_0/configuration/slb/guide/classlb.html -
Hi,
I have received a request to forward traffic based on http header; specifically if the header contains www.sample.co.uk it should go to its regular serverfarm, if it contains www.sample.co.uk/wordpress it should go to a different serverfarm, probably containing a single server - the wordpress server.
My first question is - is this even possible with the ACE? If so, does anyone have a sample config they could post here?
Lastly although there are answers to similar questions before I do appreciate any help anyone can give me as I don't have much time on the ACE, and they are pretty critical to our company, i.e. I will be taken out the back and shot if I cause an outage.
I can post detailed existing config if required.
Best wishes
MikeHi Mike,
Can't let you get shot then huh:)
class-map match-all WWW-VIP
2 match virtual-address 20.20.20.10 tcp eq www---->This 20.x.x.x should resolve to normal url
class-map type http loadbalance match-any wordpress
2 match http url /wordpress
policy-map type loadbalance first-match SLB_LOGIC
class wordpress
serverfarm wordpress
class class-default
serverfarm WWW-FARM
policy-map multi-match CLIENT_VIPS
class WWW-VIP
loadbalance vip inservice
loadbalance policy SLB_LOGIC
loadbalance vip icmp-reply
Above configuration will ensure that www.sample.co.uk/wordpress goes to serverfarm wordpress and everything else is sent to WWW-FARM or whatever the farm(regular) you want it to go.
Let me know if you have any questions.
Regards,
Kanwal
Note: Please mark answers if they are helpful. -
Is it possible to goto a scene or frame based on URL?
If I have a Flash movie with several scenes that I want to
use as different "pages" on my site, rather than creating 4
versions of this file with "gotoAndStop("scene2",1) at the
beginning of the page to get it to the right place...
Is it possible to have the Flash movie automatically goto a
specific scene (or frame) based on what the URL, or perhaps the
HTML in the page says?yes. you can use the _url property of movieclips to detect
the swf file name and you can use the externalinterface class and
javascript to detect the html file name.
but don't use scene info for navigation and don't use the
goto functions. use frame numbers or labels and the goto
methods. -
Define Corrective Actions based on URL
Hello,
I'm new to using 10gR3 Grid control -
Is there a way of defining a corrective action based on the success of a URL - so if a URL fails with say a 404 error or times out, an OS script can be run.
I can only find ways of assigning corrective actions with pre-defined alert metrics.
Thanks for any helpAt the risk of repeat-posting, I'll clarify. Say I create a file named routing.xml which defines some routes like this:
<routing-config>
<route>
<name>Standard rule</name>
<description>
This route maps the first two parts in the path with the module and action
</description>
<url-pattern>/:module/:action.do</url-pattern>
</route>
<route>
<name>Default Index</name>
<description>
Allows the module to be specified without the action for "Index" actions.
</description>
<url-pattern>/:module.do</url-pattern>
<request-parameters>
<parameter key="action" value="Index" />
</request-parameters>
</route>
<route>
<name>Homepage</name>
<description>
Loads the Home page
</description>
<url-pattern>/</url-pattern>
<request-parameters>
<parameter key="module" value="Home" />
<parameter key="action" value="Index" />
</request-parameters>
</route>
</routing-config>The bits like ":module" which be represented by the actual name of the module in the URL. Does anyone know if something like this already exists? :)
I wrote this exact same thing in PHP5 just a few weeks ago but I really don't have the motivation to write it all over again in Java :P On a side-note, things like this usually come with helpers for turning unclean URIs into clean URIs. -
Managing beans based on URL query parameters
I was just reading this thread with interest, but it didn't come to the conclusion that I need.
http://forum.java.sun.com/thread.jsp?forum=427&thread=441432
In that thread, there were two screens: a table of links to employees and an "edit employee" page. The solution was to use the command_action on the list create an "employee data" bean, which could then be edited on the "edit employee" page.
My problem is that I need to create some session beans based on query parameters in the URL. Using the example above, I'd have something like: http://localhost/app/editEmployee?empNo=38
Why? Because the user can bookmark the edit employee page, have two
browser windows open (which would require two seperate employee data beans), etc... and we need to handle that. It looks like
that means I can't use the solution in the above thread.
My current thought is to create a managed-bean with request scope and have it create the EmployeeData bean.
Another idea is to somehow initialize the bean with managed-properties
<managed-bean>
<managed-bean-name>EmpBean</managed-bean-name>
<managed-bean-class>com.mycompany.EmpBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>employeeID</property-name>
<value-ref>queryParamBean</value-ref>
</managed-property>
</managed-bean>
<!--
just returns FacesContext.getCurrentInstance().getServletRequest().getParameter("id")
-->
<managed-bean>
<managed-bean-name>queryParamBean</managed-bean-name>
<managed-bean-class>com.mycompany.QueryParamBean</managed-bean-class>
<managed-bean-scope>none</managed-bean-scope>but that seems kinda hacky. Any other ideas?Excellent, using requestScope gets rid of the queryParamBean hack from my first post. For some reason I thought value-ref evaluatations only resolved against stuff the VariableResolver can see. That's not the case. Thanks.
Unfortunately, this bean really wants to be cached on the session, not the request. I suppose it would be possible to have EmpBean delegate to a bean which is actually cached on the session, but that feels like a hack too (and is a lot of glue code).
So, I think I'm back to the factory, which can handle creating the bean from the query params, caching it, and putting it on the servlet request. I also got a visit from Captain Obvious and realized that the factory could just be a scriplet.
<% BeanCreator.createBean("com.company.EmpBean", request.getParameter("id")); %>which also isn't great, but is perhaps easier to understand than the BeanCreator from above. I looked into using EL Functions in the variable resolver for the factory, but it doesn't look like that's possible. It's probably possible to extend VariableResolver to add factory methods for managed-beans, which might be the cleanest solution. I'm thinking something like
<managed-bean>
<managed-bean-name>Emp</managed-bean-name>
<managed-bean-factory>
<factory-name>com.company.BeanFactory.getBean</factory-name>
<bean-class>com.company.EmpBean</bean-class>
<arg-value-ref>sessionScope.id</arg-value-ref>
</managed-bean-factory>But for now, the current two hacks are:
#1: to create a URL use plain html <href>.
#2: use a factory method (varying implementions) to create the bean, cache it, and put it on the servlet request
Maybe you are looking for
-
Mounting a UFS formated USB drive on Solaris 10
[Hope this is the correct place to post this question] I connected my 160 GB external usb hard drive to my V240 Solaris 9 server, ran newfs (ufs), mounted it, and wrote data to the drive with no problems. I moved it to another sparc box with Solaris
-
Play an audio on background in IOS on standby
Seems to be not possible for an Air app to play and audio file in background when iOS device is on STANDBY, I am trying a lot solutions without any luck. Adobe air SDK version 15.0.0.356 Maybe some one know about a workaround or about the new SDK upd
-
This is probably a very simple issue which I'm hoping someone can easily figure out. I process my images to taste in LR4 and then export them as jpgs in the sRGB color space. When I open them in programs like "Windows Picture Viewer" they look just l
-
Why does Firefox trigger the UAC warning each time I open it?
I design websites and test them across most browsers. We use Windows 7 operating system, and only Firefox triggers the User Account Control message on our test computers, which is a major annoyance when opening instances of Firefox in rapidfire order
-
I can't open a blank template, Can't quit pages without force quit, re-installed pages, no updates needed, rest of program seems to work, any answers?