Re: Re: solr pro plugin

Sean Coyne <[email protected]>
Newsgroups gmane.comp.cms.farcry.devel
Message-ID <[email protected]>
OK, I have a theory.  The query string that gets created 
is q=(gold+OR+coast)+AND+(fcsp_sitename:corporate)+AND+fcsp_benablesearch:true

My guess is that the "fcsp_sitename:corporate" part which ensures that only 
records for this farcry site are returned is also triggering the 
highlighting of that term.

I'll look into this and see if I can recreate and find a solution.  This 
wouldn't have come up for us because our project names are never actual 
words.

I'll see what I can do.  I may have to add a configuration option to set an 
alternate "sitename".  Currently it just uses the project name, but if that 
causes an issue when the project name is a real word then it might be the 
only solution, but perhaps not.

I'll let you know what I find out.

On Tuesday, December 4, 2012 8:58:54 PM UTC-5, AJ Mercer wrote:
>
> ... from console
>
> URL: /search?q=gold+coast
>
>
> 05/12/2012 9:55:53 AM org.apache.solr.core.SolrCore execute
> INFO: [corporate] webapp=/solr path=/select 
> params={fl=fcsp_id&start=0&q=typename:dmFile+AND+fcsp_sitename:corporate&wt=javabin&rows
> =9999999&version=2} hits=37 status=0 QTime=250
> 05/12/2012 9:55:54 AM org.apache.solr.core.SolrCore execute
> INFO: [corporate] webapp=/solr path=/select 
> params={fl=fcsp_id&start=0&q=typename:pslMediaAppearances+AND+fcsp_sitename:corporate&wt
> =javabin&rows=9999999&version=2} hits=7 status=0 QTime=31
> 05/12/2012 9:55:54 AM org.apache.solr.core.SolrCore execute
> INFO: [corporate] webapp=/solr path=/select 
> params={fl=fcsp_id&start=0&q=typename:dmNews+AND+fcsp_sitename:corporate&wt=javabin&rows
> =9999999&version=2} hits=2 status=0 QTime=0
> 05/12/2012 9:55:54 AM org.apache.solr.core.SolrCore execute
> INFO: [corporate] webapp=/solr path=/select 
> params={fl=fcsp_id&start=0&q=typename:pslOfficeLocation+AND+fcsp_sitename:corporate&wt=j
> avabin&rows=9999999&version=2} hits=18 status=0 QTime=16
> 05/12/2012 9:55:54 AM org.apache.solr.core.SolrCore execute
> INFO: [corporate] webapp=/solr path=/select 
> params={fl=fcsp_id&start=0&q=typename:dmHTML+AND+fcsp_sitename:corporate&wt=javabin&rows
> =9999999&version=2} hits=49 status=0 QTime=32
> 05/12/2012 9:55:54 AM org.apache.solr.core.SolrCore execute
> INFO: [corporate] webapp=/solr path=/select 
> params={fl=fcsp_id&start=0&q=typename:dmInclude+AND+fcsp_sitename:corporate&wt=javabin&r
> ows=9999999&version=2} hits=8 status=0 QTime=0
> 05/12/2012 9:56:15 AM org.apache.solr.core.SolrCore execute
> INFO: [corporate] webapp=/solr path=/select 
> params={hl.fragsize=200&spellcheck=true&spellcheck.q=gold+coast&qf=description_phonetic_
>
> notstored+fileext_text_notstored+body_text_notstored+who_string_notstored+pacountry_phonetic_notstored+fcsp_rulecontent+filename_con
>
> tents_phonetic_notstored+filename_phonetic_notstored+teaser_text_notstored+description_string_notstored+who_text_notstored+filename_
>
> contents_text_notstored+title_text_stored+filepath_phonetic_notstored+filepath_text_notstored+who_phonetic_notstored+metakeywords_ph
>
> onetic_notstored+fcsp_rulecontent_phonetic+sastate_phonetic_notstored+description_text_notstored+filetype_text_notstored+teaserimage
>
> _string_stored+teaser_phonetic_notstored+title_phonetic_notstored+title_text_notstored+title_string_notstored+body_phonetic_notstore
>
> d+metakeywords_text_notstored+body_string_notstored+filename_text_notstored+objectid+teaser_text_stored&hl.simple.pre=<strong>&hl.fl
>
> =fcsp_highlight&spellcheck.collate=true&wt=javabin&hl=true&spellcheck.onlyMorePopular=true&rows=10&version=2&fl=*,score&hl.snippets=
>
> 3&start=0&q=(gold+OR+coast)+AND+(fcsp_sitename:corporate)+AND+fcsp_benablesearch:true&spellcheck.dictionary=phrase&hl.simple.post=</
> strong>&spellcheck.count=1&spellcheck.build=false} hits=26 status=0 
> QTime=282
>
>
> On 5 December 2012 09:54, AJ Mercer <[email protected] <javascript:>>wrote:
>
>> I opened and saving solr config - that has got the service version 
>> running again - phew
>>
>> Will try console again ...
>>
>>
>> On 5 December 2012 09:04, AJ Mercer <[email protected] <javascript:>>wrote:
>>
>>> update: my solr services not working either :-(
>>> investigating ...
>>>
>>>
>>> Error Overview Machine:devam02 Instance:unknownMessage: Not Found Not 
>>> Found request: http://192.0.0.241:8983/solr/corporate/update/javabinBrowser:Mozilla/5.0 
>>> (Windows NT 5.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 
>>> Safari/537.11 DateTime:{ts '2012-12-05 12:01:44'} Host:ww2HTTPReferer: 
>>> http://ww2/webtop/custom/sidebar.cfm?SUB=farcrysolrprosubSection&__allowredirect=true&updateapp=false&sec=admin 
>>> QueryString:module=customlists/solrReload.cfm&plugin=farcrysolrpro 
>>> RemoteAddress:192.0.0.233 Bot:not a botError Details Exception Type:
>>> org.apache.solr.common.SolrException Tag Context:
>>>    
>>>    - *C:\Inetpub\websites\ww2\webroot\farcry\plugins\farcrysolrpro\packages\custom\cfsolrlib\components\cfsolrlib.cfc 
>>>    (line: 221)* 
>>>    - *C:\Inetpub\websites\ww2\webroot\farcry\plugins\farcrysolrpro\packages\types\solrProContentType.cfc 
>>>    (line: 1079)*
>>>    - *C:\Inetpub\websites\ww2\webroot\farcry\plugins\farcrysolrpro\customadmin\customlists\solrReload.cfm 
>>>    (line: 15)* 
>>>    - C:\Inetpub\websites\ww2\webroot\farcry\core\webtop\admin\customadmin.cfm 
>>>    (line: 35)
>>>
>>>
>>>
>>> On 5 December 2012 08:54, AJ Mercer <[email protected] <javascript:>>wrote:
>>>
>>>> Hmm, my solr doesn't like running from the console any more :-(
>>>>
>>>> On 4 December 2012 22:18, Sean Coyne <[email protected] <javascript:>>wrote:
>>>>
>>>>> Are you running Solr in a console?  If so you can you see the params 
>>>>> that are being passed during a search?  Is it searching the fcsp_sitename 
>>>>> field?  That one shouldn't be in the "qf" (query fields) parameter.  If it 
>>>>> is, then that would explain why it is coming back.  That field is just for 
>>>>> reference, it shouldn't be searched against during a routine search.
>>>>>
>>>>> If you can confirm that it is then it will be an easy fix.  If you 
>>>>> can't I will try to find a moment to test it myself.
>>>>>
>>>>>
>>>>> On Monday, December 3, 2012 10:06:46 PM UTC-5, AJ Mercer wrote:
>>>>>
>>>>>> This maybe significate - this is from the search within webtop
>>>>>>
>>>>>>  string fcsp_sitename string corporate
>>>>>>
>>>>>> On 30 November 2012 22:43, Sean Coyne <[email protected]> wrote:
>>>>>>
>>>>>>> I'm trying to recreate this, but I'm not able to.  So when you 
>>>>>>> search in the summary you see the word "corporate" highlighted?  If you 
>>>>>>> change the name of the core in the solr.xml and restart it does the same 
>>>>>>> happen but instead of "corporate" do you see the new core name highlighted?
>>>>>>>
>>>>>>> I'm testing in FarCry 6.2 (latest trunk), and the latest FarCry Solr 
>>>>>>> Pro (v1.2.4).  I pushed out a release a few days ago with some bug fixes. 
>>>>>>>  Are you running v1.2.4?
>>>>>>>
>>>>>>> -- 
>>>>>>> You received this message cos you are subscribed to "farcry-dev" 
>>>>>>> Google group.
>>>>>>> To post, email: farcr...-/[email protected]
>>>>>>> To unsubscribe, email: farcry-dev+...@**googlegroups.com
>>>>>>>
>>>>>>> For more options: http://groups.google.com/**group/farcry-dev<http://groups.google.com/group/farcry-dev>
>>>>>>> ------------------------------**--
>>>>>>> Follow us on Twitter: http://twitter.com/farcry
>>>>>>>  
>>>>>>>  
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> -- 
>>>>>>
>>>>>> *AJ Mercer*
>>>>>> <webonix:net strength="Industrial" /> <http://webonix.net> | <webonix:org 
>>>>>> community="Open" /> <http://webonix.org>
>>>>>> http://twitter.com/webonix
>>>>>> Railo Community Manager<http://www.getrailo.org/index.cfm/community/team/>
>>>>>>
>>>>>>   -- 
>>>>> You received this message cos you are subscribed to "farcry-dev" 
>>>>> Google group.
>>>>> To post, email: farcr...-/[email protected] <javascript:>
>>>>> To unsubscribe, email: farcry-dev+...-/[email protected] <javascript:>
>>>>> For more options: http://groups.google.com/group/farcry-dev
>>>>> --------------------------------
>>>>> Follow us on Twitter: http://twitter.com/farcry
>>>>>  
>>>>>  
>>>>>
>>>>
>>>>
>>>>
>>>> -- 
>>>>
>>>> *AJ Mercer*
>>>> <webonix:net strength="Industrial" /> <http://webonix.net> | <webonix:org 
>>>> community="Open" /> <http://webonix.org>
>>>> http://twitter.com/webonix
>>>> Railo Community Manager<http://www.getrailo.org/index.cfm/community/team/>
>>>>
>>>>
>>>
>>>
>>> -- 
>>>
>>> *AJ Mercer*
>>> <webonix:net strength="Industrial" /> <http://webonix.net> | <webonix:org 
>>> community="Open" /> <http://webonix.org>
>>> http://twitter.com/webonix
>>> Railo Community Manager<http://www.getrailo.org/index.cfm/community/team/>
>>>
>>>  
>>
>>
>> -- 
>>
>> *AJ Mercer*
>> <webonix:net strength="Industrial" /> <http://webonix.net> | <webonix:org 
>> community="Open" /> <http://webonix.org>
>> http://twitter.com/webonix
>> Railo Community Manager<http://www.getrailo.org/index.cfm/community/team/>
>>
>>  
>
>
> -- 
>
> *AJ Mercer*
> <webonix:net strength="Industrial" /> <http://webonix.net> | <webonix:org 
> community="Open" /> <http://webonix.org>
> http://twitter.com/webonix
> Railo Community Manager<http://www.getrailo.org/index.cfm/community/team/>
>
>

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev-/[email protected]
To unsubscribe, email: farcry-dev+unsubscribe-/[email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.