Re: solrjs

2009-12-12 Thread James McKinney

The documentation has been massively expanded, and a demo site has been
created:

Demo: http://evolvingweb.github.com/ajax-solr/examples/reuters/index.html
Docs: http://evolvingweb.github.com/ajax-solr/

Although it took a while, the documentation is more thorough than SolrJS's
had been.

James


AE-4 wrote:
> 
> I fully understand it was not working probably in production or on other
> data sets. But it did serve a purpose for me.. i.e. show a demo to anyone
> out of my box.. and I update my local repo with trunk all the time..
> 
> I could do ant reuters-start using my laptop and it would work.. my point
> is remove it when you have something to replace it with.. active
> development won't help my demo to customers.. and will not promote solr to
> larger audience..
> 
> well whats done is done. i will revert to older repo revision.
> 
> thanks
> 
> --- Den ons 2009-10-28 skrev Colin Hynes :
> 
>> Från: Colin Hynes 
>> Ämne: Re: solrjs
>> Till: solr-user@lucene.apache.org
>> Datum: onsdag 28 oktober 2009 15.18
>> 
>> Actually, it wasn't quite working. It also replicated a lot
>> of stuff that's in ajax solr, which is being more actively
>> developed. Hence the removal.
>> 
>> 
>> On Oct 28, 2009, at 10:16 AM, Antonio Eggberg wrote:
>> 
>> > I am all for new stuff.
>> > 
>> > It would be nice to see a working example of ajax-solr
>> before killing completely solrjs from trunk... at least it
>> was working .. ajax-solr has no how to, nor any working
>> example..
>> > 
>> > http://github.com/evolvingweb/ajax-solr
>> > 
>> > Well why not just remove the javascript folder too and
>> just have one liner mention in CHANGES.txt??...
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> >     
>> __
>> > Låna pengar utan säkerhet. Jämför vilkor online
>> hos Kelkoo.
>> >
>> http://www.kelkoo.se/c-100390123-lan-utan-sakerhet.html?partnerId=96915014
>> > 
>> 
>> Active Media Architects, Inc.
>> World Class Design, Programming & Strategy - Since
>> 1998
>> http://www.activema.com
>> 
>> 1-888-392-4567 toll free
>> 1-586-445-1000 local
>> 1-586-445-2247 fax
>> 
>> 
> 
> 
>   ___
> Sök efter kärleken!
> Hitta din tvillingsjäl på Yahoo! Dejting:
> http://ad.doubleclick.net/clk;185753627;24584539;x?http://se.meetic.yahoo.net/index.php?mtcmk=148783
> 
> 

-- 
View this message in context: 
http://old.nabble.com/ERROR%3ASCHEMA-INDEX-MISMATCH-tp26091970p26763917.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: how to use ajax-solr - example?

2009-12-12 Thread James McKinney

It seems the OP has found what he wanted, but just to clarify and update:

The AJAX Solr documentation has been massively expanded, and a demo site has
been created:

Demo: http://evolvingweb.github.com/ajax-solr/examples/reuters/index.html
Docs: http://evolvingweb.github.com/ajax-solr/

AJAX Solr is JavaScript framework-agnostic. If you prefer Prototype, use
Prototype. The documentation, however, is written in jQuery, as it is the
most popular framework.

Counter what Israel said, sending data only between JavaScript and Solr will
*not* limit you to one domain. In the demo site, for example, the HTML/JS is
on one domain and Solr is on another domain.

Cheers,

James


Israel Ekpo wrote:
> 
> On Wed, Nov 4, 2009 at 10:48 AM, Joel Nylund  wrote:
> 
>> Hi, I looked at the documentation and I have no idea how to get started?
>> Can someone point me to or show me an example of how to send a query to a
>> solr server and paginate through the results using ajax-solr.
>>
>> I would glady write a blog tutorial on how to do this if someone can get
>> me
>> started.
>>
>> I dont know jquery but have used prototype & scriptaculous.
>>
>> thanks
>> Joel
>>
>>
> 
> Joel,
> 
> It will be best if you use a scripting language between Solr and
> JavaScript
> 
> This is becasue sending data only between JavaScript and Solr will limit
> you
> to only one domain name.
> 
> However, if you are using a scripting language between JavaScript and Solr
> you can use the scripting language to retrieve the request parameters from
> JavaScript and then same them to Solr with the response writer set to
> json.
> 
> This will cause Solr to send the response in JSON format which the
> scripting
> language can pass on to JavaScript.
> 
> This example here will cause Solr to return the response in JSON.
> 
> http://example.com:8443/solr/select?q=searchkeyword&wt=json
> 
> 
> -- 
> "Good Enough" is not good enough.
> To give anything less than your best is to sacrifice the gift.
> Quality First. Measure Twice. Cut Once.
> 
> 

-- 
View this message in context: 
http://old.nabble.com/how-to-use-ajax-solr---example--tp26198805p26763868.html
Sent from the Solr - User mailing list archive at Nabble.com.



Anyone using Solr PHP extension on OS X?

2009-12-12 Thread regany

Just wondering if anyone has successfully installed the Solr PHP extension on
OS X?

I've got OS X Server 10.4.11 and specifically wanted to know if anyone has
got the Solr PHP extension to work with the "standard" apple install of
Java.

Then I'll know if I've got a config problem or need to install Tomcat. :)

Thanks,

Regan
-- 
View this message in context: 
http://old.nabble.com/Anyone-using-Solr-PHP-extension-on-OS-X--tp26763185p26763185.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: auto-starting Solr on OS X ?

2009-12-12 Thread Grant Ingersoll
I put Tomcat start script in /Library/StartupItems

On Dec 11, 2009, at 10:04 PM, regany wrote:

> 
> hello!
> 
> does anyone know how you go about setting up Solr so it auto starts after a
> reboot etc on OS X?
> 
> thanks,
> 
> regan
> 
> 
> -- 
> View this message in context: 
> http://old.nabble.com/auto-starting-Solr-on-OS-X---tp26753997p26753997.html
> Sent from the Solr - User mailing list archive at Nabble.com.
> 

--
Grant Ingersoll
http://www.lucidimagination.com/

Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids) using 
Solr/Lucene:
http://www.lucidimagination.com/search



Re: auto-starting Solr on OS X ?

2009-12-12 Thread khalid y
Best way for you is LAUNCHD system.
You can found a good documentation and some example.


http://developer.apple.com/macosx/launchd.html



2009/12/12 Erick Erickson 

> See http://www.macosxhints.com/article.php?story=20041105070509783
>
> In general, crontab is what you want, probably with the @Reboot
> frequency
>
> HTH
> Erick
>
> On Fri, Dec 11, 2009 at 10:04 PM, regany  wrote:
>
> >
> > hello!
> >
> > does anyone know how you go about setting up Solr so it auto starts after
> a
> > reboot etc on OS X?
> >
> > thanks,
> >
> > regan
> >
> >
> > --
> > View this message in context:
> >
> http://old.nabble.com/auto-starting-Solr-on-OS-X---tp26753997p26753997.html
> > Sent from the Solr - User mailing list archive at Nabble.com.
> >
> >
>


Re: Auto update with deltaimport

2009-12-12 Thread Joel Nylund

windows or unix?

unix - make a shell script and call it from cron

windows - make a .bat or .cmd file and call it from scheduler

within the shell scripts/bat files use wget or curl to call the right  
import:


wget -q -O /dev/null http://localhost:8983/solr/dataimport?command=delta-import


Joel

On Dec 12, 2009, at 1:38 AM, Olala wrote:



Hi All!

I am developing a search engine using Solr, I was tested full-import  
and

delta-import command successfully.But now,I want to run delta-import
automatically with my schedule.So, can anyone help me???

Thanks & Regards,
--
View this message in context: 
http://old.nabble.com/Auto-update-with-deltaimport-tp26755386p26755386.html
Sent from the Solr - User mailing list archive at Nabble.com.





Re: Simple Wildcard Search Question

2009-12-12 Thread QBasti

Hey,

thanks for the help

Need analyzer definitions BOTH for indexing and querying, the correlation
between the two is important./quote>

The Query Analyzers are: 
LowerCaseFilterFactory
RemoveDuplicatesFilterFactory
WordDelimiterFilterFactory
StopFilterFactory and
SynonymFilterFactory

So it says, the query "name0*" gets analyzed into "name" and "0" without the
*.
Is that the problem, that with my query "name0*" he is really searching for
"name0" which, doesn't exist?
-- 
View this message in context: 
http://old.nabble.com/Simple-Wildcard-Search-Question-tp26747482p26756663.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Definitive version of acts_as_solr

2009-12-12 Thread Andrea Campi

Hi all,

On Dec 11, 2009, at 7:52 PM, Jacob Elder wrote:


What versions of acts_as_solr are you all using?

There appears to be about a dozen forks on GitHub, including my own.
http://acts-as-solr.rubyforge.org/ has a notice that the official site is
now http://acts_as_solr.railsfreaks.com/, but *don't click that
link*because it's just a mess of pop-up ads now. It would be great to
get some
consolidation and agreement from the community.
I agree, it is a mess; I'm sure it will only get worse as people 
complete the migration to Solr 1.4, as there are a bunch of features you 
can't easily access through acts_as_solr.


At my company we use acts_as_solr extensively, which means I have my own 
fork at http://github.com/andreacampi/acts_as_solr , and even worse our 
local git repo has even more changes, integrating patches collected here 
and there on the net (we didn't find the time yet to push them out to 
github).


Of course that's far from ideal. It would be good to get that cleared 
up. I would have done it already, except for the chronic lack of time. 
But then again... read below.


Erik Hatcher wrote:
And take a look at this ridiculous bug (in at least one fork) of 
acts_as_solr: 
 

I doubt it's just in one fork; acts_as_solr does too many magical things 
that end up biting you in the ass as soon as you do something slightly 
more complex.
In our local fork I removed all the magic that deals with field types 
(not just suffixes, there are other related issues I can't remember 
right now).



So... what do we do?

Can we get the best version of acts_as_solr donated to Solr's svn?  
Who can rightfully say where the IP of that comes from so we can 
ensure it's provenance is clear and cool by all who touched the 
code?   Or maybe we just start from scratch with the simplest thing 
that can possibly work (like my acts_as_solr_"lite" (page 13 of 
http://code4lib.org/files/solr-ruby.pdf) and iterate from there in 
Apache's svn?
Frankly, at this stage I would advise against spending any more time on 
acts_as_solr, unless a more extensive redesign is undertaken.
acts_as_solr is very convenient as a way to publish models to Solr, but 
the search API is sorely lacking, and it's way too complicated. 
ParserMethods#parse_query is plain weird, willy-nilly calling options by 
a different name to the one the underlying library does; and so on (one 
example really stands out: to specify a filter query you have to use 
options[:facets][:browse] even though you may not be doing any faceting 
at all).


I would love to see the find_* methods be implemented as thin wrappers 
on top of the ruby solr library, with the main (only?) difference being 
that they return ActiveRecord objects. This would make acts_as_solr less 
surprising, more reliable but also let us use any new feature that 
requires new parameters with no changes.
And if I can dream, I would also like to see rsolr's syntax 
supported--maybe acts_as_solr should be an adapter on top of your choice 
of either underlying library?


And... starting from your acts_as_solr_lite does sound like an option, 
actually!
It would probably be quite a lot of work, but it would result in 
something much cleaner.


So I would say the next step should be a list of "likes" and "don't 
likes", see if we can get consensus, and see if we can get people to 
work on it :)


Bye,
Andrea