installation issues

You need to be logged in to post messages in the forums. New users may register here.

Romeo Antony

Member since:
18 May 2010

Posts: 5

Wednesday 25 August 2010 5:55:56 am

can u please hlp me understand the installation 4 and 5 steps


also can u tell me what is the use of followoing things

New field type is defined as 'text4suggest' based on intrinsic type 'solr.TextField'. Following actions are applied when indexing happens (similar as when querying):

1. text is tokenized by white space
2. stop filter factory removes unwanted words defined in 'stopwords.txt'
3. factory for slicing and combining words is called (useful for slicing words with numbers) but without concatenations
4. lower case factory does casing normalization

Next, new field 'ngsuggest_text' is added under <fields> node:
n advance
Thanks i

Romeo
Up

Ivo Lukac

Member since:
09 January 2008

Posts: 19

Thursday 26 August 2010 12:42:49 am

Did you go with INSTALL.txt?

As for 'text4suggest' it is not mandatory but otherwise the results are flooded with concatenated words due to the 'ez_df_text' solr field type and how it works. Also, 'ez_df_text' field stores lot of meta content like node ids, installation ids, etc. which should not be exposed.
Up

Romeo Antony

Member since:
18 May 2010

Posts: 5

Thursday 26 August 2010 2:14:13 am

Thanks for your reply Ivo and you have given me a lot of important ideas , it worked out success. I have followed the install.txt

But I am stuck at the step 4. For development , I am using ezflow package(ezwebin,zflow.ezjscore and jquery is activated in ezjscore.ini)

* Activated the extension.

* I have decided ngsuggest_text solr field instead of ezf_df_text.

* for better results and to avoid exposing of meta content like node ids, installation ids,

* For that I have merged the update/schema.xml into extension/ezfind/java/solr/conf/schema.xml(not overwritten) to define new solr filed




* Here comes the confusion in INSTALL.txt ->4th step

"Adding jQuery support. // what is it mean, js files are already n this extension .Do I need to copy it into ezjscore's javascript folder?


a) If jQuery is already used extension/ngsuggest/design/ezwebin/templates/page_head_script.tpl can be deleted // It is not clear. Something a vague idea


b) If not, but ezwebin template page_head_script.tpl is used, this step can be skipped (page_head_script.tpl included in extension loads jQuery over ezjscore)

// is this mean page_head_script.tpl in extension ezwebin or page_head_script.tpl in ngsuggest extension and can you please point me what is the idea behind it


c) Or download jQuery and load it directly through JavaScriptSettings in design.ini"


// js files are already with ngsuggest , so i do not know y do I need to download it.


These are the doubts may arise in newbie who first comes to use this extension ngsuggest. I really like to install it in our news paper website. Becz it seems a nice extension for a daily news portal. This extension is 100% addon functionality to ezfind.

Thanks in advance

Romeo.





Up

Ivo Lukac

Member since:
09 January 2008

Posts: 19

Saturday 28 August 2010 3:54:53 am

Thing is that extension needs jQuery, but it could already be used on site. So we need to watch for collisions.

So choose A) if your site has jQuery loaded

Do nothing (option B) ) if you don't have jQuery loaded and have ezjscore extension enabled

Choose C) if you don't have jQuery loaded and do not have ezjscore extension enabled


Hope this clears up the matter
Up

Romeo Antony

Member since:
18 May 2010

Posts: 5

Saturday 28 August 2010 6:09:34 am

thanks you for your great mind Ivo. I have no luck, trying for last 3 days.

I think everything I did as per installtion. ezfind and ezjscore installed. Ezfind search is working. But ngsuggest is not working.


As you said ngsuggest need jquery. but have never used following jqueries of ngsuggest
anywhere in my site

jquery.jsonSuggest-dev.js
json2.js
ngSuggest.js

So I think there is no chance to collision as you said "thing is that extension needs jQuery, but it could already be used on site. So we need to watch for collisions."


so I can skip step A) if your site has jQuery loaded <= skipped

B)"if you don't have jQuery loaded and have ezjscore extension enabled"


step B will work in my case since ezjscore is activated and I never used
follwoing jqueries

jquery.jsonSuggest-dev.js
json2.js
ngSuggest.js


I do not want to care about step C.


Step 4 is ok.


Step 5 will be a some issue generic bez

"If default ezwebin search form is used (page_header_searchbox.tpl) this step can be skipped (it is overridden by ngsuggest version). In this case $search_id is: searchtext"


extension\ngsuggest\design\ezwebin\templates\page_header_searchbox.tpl

extension\ngsuggest\design\ezwebin\templates\page_head_script.tpl


It will be depend on extension order in site.ini in global override?

ActiveExtensions[]=ezfind
ActiveExtensions[]=ezflow
ActiveExtensions[]=ezwebin
ActiveExtensions[]=ngsuggest


and design settings is like
SiteDesign=ezflow
AdditionalSiteDesignList[]
AdditionalSiteDesignList[]=ezwebin
AdditionalSiteDesignList[]=base
AdditionalSiteDesignList[]=standard

So page_header_searchbox.tpl,page_head_script.tpl from extension ezwebin will be loaded.

So I can skip step 5 also. since "If default ezwebin search form is used (page_header_searchbox.tpl) this step can be skipped (it is overridden by ngsuggest version). In this case $search_id is: searchtext"


But n installation u have explained (it is overridden by ngsuggest version)

how it can be ?

Since page_header_searchbox.tpl,page_head_script.tpl from extension ezwebin will be loaded first before ngsuggest.

Totally get confused.


I will be a thankfull for a clear idea.
Romeo.












Up

Ivo Lukac

Member since:
09 January 2008

Posts: 19

Monday 30 August 2010 7:33:52 am

Usually custom extensions need to be ordered before default ones. Problem is that you can't sort it from the admini interface (yet), you need to edit your site.ini override by hand.

So put the order like this:
ActiveExtensions[]=ngsuggest
ActiveExtensions[]=ezfind
ActiveExtensions[]=ezflow
ActiveExtensions[]=ezwebin
Up

Romeo Antony

Member since:
18 May 2010

Posts: 5

Tuesday 31 August 2010 12:50:03 am

Thanks a lot Ivo .
Up

You need to be logged in to post messages in the forums. New users may register here.