Exact Search

2012-12-22 Thread hank williams
Hi,
I'm trying to build a facet search, but I'm having some difficulties. 
I can do a free text search over things, but I can build exact queries.
I know that I have a result that has this data
iraq treatment of children hong 
kongiraq treatment of 
children hong kong
cavendish-bentinck, henrychurchill, winston   
 ward, john
cavendish-bentinck, henrychurchill, winston   
 ward, johnnottingham 
southcabinetdepartment of state 
   dundeestoke-on-trent stokesecretary of state for the 
colonies1422064629033467904

And my schema looks like this
 
How can I create an exact query with name_long='churchill, winston' AND 
label_long=''iraq treatment of children hong kong' AND town='dundee'
When I try
label_long:*iraq treatment of children hong kong* AND 
name_long:*churchill, winston* AND town:*dundee*
I get zero results.   

multi field query with selective results

2012-12-22 Thread J Mohamed Zahoor
Hi

I have a word completion requirement where i need to pick result from two 
indexed fields.
The trick is i need to pick top 5 results from each field and display as 
suggestions.

If i set fq as field1:XXX AND field2:XXX, the top result comes entirely from 
field1 matches.
Is there any other way to get top 5 from field 1 matches and top 5 from field 2 
matched results?

./Zahoor

Bad performance while query pdf solr documents

2012-12-22 Thread uwe72
hi

i am indexing pdf documents to solr by tika.

when i do the query in the client with solrj the performance is very bad (40
seconds) to load 100 documents?

Probably because to load all the content. The content i don't need. How can
i tell the query to don't load the content?

Or other reasons why the performance is so bad?

Regards
Uwe



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Bad-performance-while-query-pdf-solr-documents-tp4028766.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Bad performance while query pdf solr documents

2012-12-22 Thread Erik Hatcher
Set text to be unstored (stored="false") and / or don't put that field in your 
query-time fl parameter. 

Erik

On Dec 22, 2012, at 18:23, uwe72  wrote:

> i dont want to load the part:
> 
> 
> where is the indexed content of the origin pdf
> 
> 
> 
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Bad-performance-while-query-pdf-solr-documents-tp4028766p4028767.html
> Sent from the Solr - User mailing list archive at Nabble.com.


Re: multi field query with selective results

2012-12-22 Thread Lance Norskog

Please start a new thread.

Thanks!

On 12/22/2012 11:03 AM, J Mohamed Zahoor wrote:

Hi

I have a word completion requirement where i need to pick result from two 
indexed fields.
The trick is i need to pick top 5 results from each field and display as 
suggestions.

If i set fq as field1:XXX AND field2:XXX, the top result comes entirely from 
field1 matches.
Is there any other way to get top 5 from field 1 matches and top 5 from field 2 
matched results?

./Zahoor




Re: Struggling with solr 4.0 and zookeeper - multiple solr collection and configs

2012-12-22 Thread joe.cohe...@gmail.com
If I run
java -classpath example/solr-webapp/WEB-INF/lib/* 
org.apache.solr.cloud.ZkCLI -cmd bootstrap -zkhost 127.0.0.1:9983 
-solrhome example/solr

on each collcetion, I end up having 3 different configs.
But when I start solr, it is not able running all 3 collections with  each
one's configs. It keeps searching collection2's an collection3's config
under collection1's relative path config.


Erick Erickson wrote
> On the solr cloud page, admittedly down the page a ways, is the line
> below.
> Does that apply?
> Best
> Erick
> 
> # try bootstrapping all the conf dirs in solr.xml
> java -classpath example/solr-webapp/WEB-INF/lib/*
> org.apache.solr.cloud.ZkCLI -cmd bootstrap -zkhost 127.0.0.1:9983
> -solrhome example/solr
> 
> 
> 
> On Wed, Dec 19, 2012 at 1:46 PM, 

> joe.cohen.m@

>  <

> joe.cohen.m@

>> wrote:
> 
>> I'm trying to build the following solr cluster:
>> 3 collections, with 3 differnet configuration sets, on multiple servers.
>> It seems that solr can't use different config trees in the zookeeper at a
>> certain time.
>> Even if I manage to get to a state in which under the 'configs' node in
>> the
>> zookeeper, I have 3 config folders with the solr conf files, when I run
>> solr, it seems like it picks one of them and looks for the other config
>> files under the single one it picked.
>>
>> thus I get messages like " no zookeeper node found in
>> /configs/collection1cong/collection2conf/solrconfig.xml"
>> while I was assuming it should see that it has the node :
>> /configs/collection2conf/solrconfig.xml.
>>
>> my zookeper configs node looks like:
>> configs/
>> configs/collection1conf
>> configs/collection2conf
>> configs/collection3conf
>> configs/collection1conf/
> 
>> configs/collection2conf/
> 
>> configs/collection3conf/
> 
>>
>> I've tried many different ways of solr.xml editing and none helped:
>> 1. setting full paths for each collection -  an error says invalid path
>> 2. setting relative paths for each collection - an error says cant find
>> zookeper node because it searchs under defaultcollectionpath+relativepath
>> 3. running with only one core - solr doesnt see the other collections.
>>
>>
>> any idea?
>> is this even possible with current solr version?
>>
>> thanks.
>>
>>
>>
>> --
>> View this message in context:
>> http://lucene.472066.n3.nabble.com/Struggling-with-solr-4-0-and-zookeeper-multiple-solr-collection-and-configs-tp4028113.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>





--
View this message in context: 
http://lucene.472066.n3.nabble.com/Struggling-with-solr-4-0-and-zookeeper-multiple-solr-collection-and-configs-tp4028113p4028797.html
Sent from the Solr - User mailing list archive at Nabble.com.