Link to home
Start Free TrialLog in
Avatar of madheeswar
madheeswarFlag for Singapore

asked on

Searching and Search Results- Need workaround for Web.

Dear Experts,
Server and Client Version: ND 6.5
I have a requirement to do a search on a particular notes database from the browser. I am not allowed to use notes agent to dynamically build an html page due to performance issue. Neither I have the option of embedding the view in a $$SearchTemplate, since the search parameter is going to exceed 256k URL limit.

Could someone suggest an idea?


Thanks,
maddy.
ASKER CERTIFIED SOLUTION
Avatar of p_partha
p_partha

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 madheeswar

ASKER

Thanks Partha.

For 256K limit, I thought of creating a Computed Text field and get all the parameters (search queries) into the field and use this field in agent. (My search query will cross 256K, as the choices in advanced search are dynamic and the choices are very large.)

Queries:
Since this agent is called by many people at the same time, how to reduce the performance impact on Domino server?
And utilize the search results for next search which are displayed in client(IE)?

I thought to use of XML. But I am not master in that. So, I need pointers or code to start my work. How about using Servlets?

Waiting for answers.
thanks,
maddy.



SOLUTION
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

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
Thanks Sjef.
256K limit is for URL. So, I am in a tight position.

How about XML, Servlets?
Avatar of p_partha
p_partha

Whether it's XML or servlet, you have to query the database to get the results. So i am not sure what performance u are going to gain. But if you use a servlet, it's loaded only once in the memory as opposed to agents. Servlet also would be a good choice , but the way i described can keep your client happy for sometime..

Partha
I am bothered about the agent.

When multiple persons trigger agent, this is going to effect the server performance. As there are lots of agents running.

My query is, can't we use the search result which is displayed at the first query for the next time for saving performance/load on server?

Is it possible to make all the Notes documents into XML and then search on them and display it when serached? Will it be easy? I am not pretty sure on how to get this workaround.
SOLUTION
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
256K?! You'll hit that one?? Assuming that half the size of that URL will be fieldnames or whatever, then the other half must be user data. Nobody in any normal state of mind will type in 128K characters when searching! And, if they would do so, there will never be two searches at the same time. I therefore think that you will never hit that limit. So build a standard $$Search form, and read the help on Customizing search forms (which you probably already did).

I'm afraid I won't be rewarded for this comment...

Sjef ;)
Maddy
there is a 1024 character length restriction in URL. what is this 256k limit you are talking abt. I don't get you.

Moreover the method i explained does a post so you are safe...

Partha
1024 character limit?? Why don't you look in the Server document of your server, Internet protocols, HTTP, bottom right-hand corner? It says:
    Maximum URL length:    4 kilobytes
and it can be changed, like most limits! By the way, the length of POST data can also be restricted, see the Internet Site document.

I mean it: read the Designer Help on "Customizing search forms":
>  The $$Search form builds and invokes a SearchView URL command to
>  perform the search, supplying arguments either as URL command
>  arguments or using posted field values.
am sorry bro, it's 2,048 (double of what i said )  characters for GET:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q208427

Partha
Hi Bro, thanks for tihe info. Is there also a limit in IE6?

Indeed I used some server-to-server URL-requests, we could work with about 4 K easily. We never looked into the limiting factors, though, it could have been the Domino-server sending the URL or the receiving end (unknown server). As you said, the POST isn't limited when you use a form.
am not sure abt IE6, but never really had a situation of that many characters in URL...

Partha
Thanks guys for answering.

Hemanth,
May I know how to implement XML and SOAP.
How to start working on this logic, etc.,

thank you.

maddy.
By the way, Madheeswar: congrats, you're Guru now!
For that you have to install websphere.. or wait for Domino 7..

The server has to support this protocol...

For time-being the soln.. that I see is post data and let WQS agent handle it..you will be wasting time to explore options here.. as there are really no options !
Thanks Sjef.

Hemanth,
Ok. I will proceed with the old method. But, if you get any ideas/workarounds, then let me know.

Thanks,
maddy.
SOLUTION
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