highlighting of text field in Japanese

2012-09-13 Thread Chau_Fu
Hi,

I am very new for Solr.
I am using edismax that combines two fieldTypes of CJKTokenizer and 
GosenTokenizer to query for japanese  text.
but do not how to set the hl.fl of highlightcomponent for the two fieldTypes 
with the same  contents.
Could you guys offer me some advice please? 

Regards,

Qiao HU


Re: Can i have more than one field as defaultSearchField in schema.xml

2012-09-13 Thread Jochen Just
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am 14.09.2012 07:30, schrieb veena rani:
> Hi,
> 
> Can i have more than one field as defaultSearchField in
> schema.xml. This is my default search field in solr,
If you want to search in more than one filed the Edismax-Parser
(http://wiki.apache.org/solr/ExtendedDisMax) might be helpful.
> 
> ** *
> techskill.* But i need to
> add one more field to default search field.
> 


- -- 
Jochen Just   Fon:   (++49) 711/28 07 57-193
avono AG  Mobil: (++49) 172/73 85 387
Breite Straße 2   Mail:  jochen.j...@avono.de
70173 Stuttgart   WWW:   http://www.avono.de
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQIcBAEBAgAGBQJQUsvGAAoJEP1xbhgWUHmS6t0P/3SHYVQ2L5TBrGM8R7YEv3FV
qW8346kZ8r1nYbbpjNU80S6W16o4wxRn2UHEgguhk9i7IufrXlRiaATGUHMcrdKw
lxF6BM4vlyldkFXi6p5z51OefMoJM/Z10PCNgl71UymUm9wMnMbOo+d4IGeL9b4p
Q/pqpBEEw2Ej+RxAwDUv4jwGnao/TkFeduf0W1tyBWgR1zGmiPltc/8LrVGq/Gi3
TohpedfeWOETYy5yJsqonna409B2kT853odWnC1mW1ThucOfhCU5nBkNj1g4wXUg
GTMuGLG6yf2oLdtUjkbEAJFYhsn4zWwIyHW0+Qg7e7s1n9SHGBgROziiJi2U2Z+h
2MDi6DAQcYluulKR4ZwL0FRfiDzu5HwG1vGGiqBumLky1cJpfREpMcWXlIz0Vx4r
7CiSg7YqXQp5GaVO1fH0KyJ72dd9JFEHI3pl69nsA1UBTKI5i1oSwdk1q606HrYp
lG3gGIlMYnGk4qCKTvQS2BAgIb4ijKRH0a//oSSRV2KwurRgAW7F3SziQIcK8BtC
XjlmVHAvVHbpo8Z0X3zWQ4TTG43oBfrD+HuVrVI9hK27r6xp3RCMwQqR7tV8pHf7
p/ceJK0ywahoh/GflxMkefCzj8m866APwFbs8ZR/D2OfLNUhnStG2NpmC7uA7G/N
Ap6iSlj2f8689dGU7Sqz
=59ZA
-END PGP SIGNATURE-


RE: Can i have more than one field as defaultSearchField in schema.xml

2012-09-13 Thread Harshvardhan Ojha
Hi Veena,

No you can't have more than one field as defaultSearchField, instead you can 
use copy field.

Regards
Harshvardhan Ojha

-Original Message-
From: veena rani [mailto:veenara...@gmail.com] 
Sent: Friday, September 14, 2012 11:01 AM
To: solr-user@lucene.apache.org
Subject: Can i have more than one field as defaultSearchField in schema.xml

Hi,

Can i have more than one field as defaultSearchField in schema.xml.
This is my default search field in solr,

**
* techskill.*
But i need to add one more field to default search field.

-- 
Regards,
Veena.
Banglore.


Re: Solr 4.0-BETA facet pivot returns no result

2012-09-13 Thread andy
I got the answer,apache-solr-4.0.0-BETA.tgz is OK, I used the
apache-solr-4.0.0-BETA.zip before



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-4-0-BETA-facet-pivot-returns-no-result-tp4007133p4007680.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr 4.0-BETA facet pivot returns no result

2012-09-13 Thread andy
the version info as follows


4.0.0.2012.08.06.22.50.47
4.0.0-BETA 1370099 - rmuir - 2012-08-06
22:50:47
4.0.0-BETA
4.0.0-BETA 1370099 - rmuir - 2012-08-06
22:44:25



Chris Hostetter-3 wrote
> 
> are you absolutely certain you are using the 4.0-BETA?
> 
> I just tried that exact URL using hte sample data and i got a facet_pivot 
> section populated with data. 
> 
> what does http://localhost:8983/solr/collection1/admin/system say your 
> solr-spec-version and solr-impl-version are?
> 
> 
> -Hoss
> 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-4-0-BETA-facet-pivot-returns-no-result-tp4007133p4007673.html
Sent from the Solr - User mailing list archive at Nabble.com.


dih groovy script question

2012-09-13 Thread Moore, Gary
I'm a bit stumped as to why I can't get a groovy script to run from the DIH.   
I'm sure it's something braindead I'm missing.   The script looks like this in 
data-config.xml:

row, 
org.apache.solr.handler.dataimport.ContextImpl context )  {
  // do groovy stuff
return row
}
]]>


When I run the import, I get the following error:


Caused by: java.lang.NoSuchMethodException: No signature of method: 
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.createHashId() is applicable 
for argument types: (java.util.HashMap, 
org.apache.solr.handler.dataimport.ContextImpl) values: [[Format:Reports, 
Credits:, EnteredBy:Corey Holland, ...], ...]
at 
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.invokeImpl(GroovyScriptEngineImpl.java:364)
at 
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.invokeFunction(GroovyScriptEngineImpl.java:160)
... 13 more

The script runs fine from the shell so I don't believe there are any groovy 
errors.  Thanks in advance for any tips.
Gary




This electronic message contains information generated by the USDA solely for 
the intended recipients. Any unauthorized interception of this message or the 
use or disclosure of the information it contains may violate the law and 
subject the violator to civil or criminal penalties. If you believe you have 
received this message in error, please notify the sender and delete the email 
immediately.


Re: N-gram ranking based on term position

2012-09-13 Thread Chris Hostetter

: Since Edge N-gram tokens are a subset of N-gram tokens, I was wondering if
: I could be a bit more space efficient.

the use of edgengrams is really a question of your goal and wether having 
terms for those overlaping ngram tokens is what you want.

If you just want to match the existing terms you already have in a way 
that scores documents higher when those terms have a lower term position, 
then something like a "SpanFirstQuery" is probably more appropriate.

Off the top of my head, i'm not sure that there is an easy way to generate 
a SpanFirstQuery in solr at the moment -- the "surround" parser supports 
SpanQueries through a special syntax, but I don't think it supports 
SpanFirstQuery - so writing your own quick and dirty SpanFirstQParser 
(based on TermQParser) might be the best way to go.


-Hoss


Re: How to know the indexversion when sending a document ?

2012-09-13 Thread Chris Hostetter

: When I index a document in Solr, I do not commit immediately after, I use
: the autoCommit feature.
: But I would like to know in which index's version the document will be
: available. Is that possible to get this information in the HTTP response
: when sending the document to index ?

No, that version information doesn't even exist when you add the document, 
so there is no way to return it to the update client.

: Also, Is it possible to have the index's version in the Solr responseHeader
: block when I issue a search query  ?

That would be possible with a small amount of code -- but i'm not really 
sure how useful it would be on every response.  You can already see the 
version info in use by the "currentSearcher" by asking the /mbeans handler 
for the stats on that object...

http://localhost:8983/solr/admin/mbeans?stats=true&key=searcher


Can you elaborate a bit on your goal, because this is sort of smelling 
like an XY Problem

https://people.apache.org/~hossman/#xyproblem
XY Problem

Your question appears to be an "XY Problem" ... that is: you are dealing
with "X", you are assuming "Y" will help you, and you are asking about "Y"
without giving more details about the "X" so that we can understand the
full issue.  Perhaps the best solution doesn't involve "Y" at all?
See Also: http://www.perlmonks.org/index.pl?node_id=542341



-Hoss


Re: Is it possible to do an "if" statement in a Solr query?

2012-09-13 Thread Chris Hostetter


: But when i search for some medicine, following my business rules, i have to
: verify if the result of my search contains any Original medicine, if there
: is any, then i wouldn't show the generics of this respective medicine, on
: the other hand, if there wasnt any original product in the result i would
: have to return its generics.
: Im currently returning the original and generics, is there a way to do this
: kind of "checking" in solr?

Think carefully about what you really want here, because there is a 
subtlety in your description that is a bit ambiguious.

Do you want the logic to be "if total result set contains any original 
medicines, then remove all generic medicines from the result set" or is 
the logic you need "if total result set contains any original medicines X, 
then remove all generic medicines Y such that Y is a generic form of X."

Those are very different.

Imagine Vaxidrop and Vaxipill are both original meds, while Generidrop and 
Generipill are the corrisponding generics.  If i do a search that 
(unaltered) matches the following docs...

* Vaxidrop
* Generidrop
* Generipill

...then what should the result set be after your biz rules? just Vaxidrop, 
or Vaxidrop + Generipill?


-Hoss


Re: Re: Schema model to store additional field metadata

2012-09-13 Thread Chris Hostetter

: So, let's assume you want to provide links to the images.
: Having a field (multiValued?) with index="false" and stored="true"
: would allow you to store all the img urls in a single field.
: 
: All that said, now it's up to your application layer that
: constructs the pages for presentation to the user to
: "do the right thing" with the returned fields to allow
: images (or whatever) to be displayed.

Not yet mentioned in this thread: you are garunteed that the order you put 
the values into a multiValued="true" stored="true" field is the order 
those values will be returned when you ask for the field later.  

so if you have a multiValued "img_src" field and a multiValued "img_alt" 
field, and you add data to those fields i na loop over your image objects, 
you can later know that the Nth value in img_src corrisponds to the Nth 
value in img_alt


-Hoss


Re: Solr 4.0-BETA facet pivot returns no result

2012-09-13 Thread Chris Hostetter

: I use the Solr 4.0-BETA version, my request url is
: 
http://localhost:8983/solr/collection1/select?q=*%3A*&rows=0&wt=xml&facet.pivot=cat,popularity,inStock&facet.pivot=popularity,cat&facet=true&facet.field=cat&facet.pivot.mincount=0
: 
: but I do not get any facet pivot info in the result

are you absolutely certain you are using the 4.0-BETA?

I just tried that exact URL using hte sample data and i got a facet_pivot 
section populated with data. 

what does http://localhost:8983/solr/collection1/admin/system say your 
solr-spec-version and solr-impl-version are?


-Hoss


Re: Hey solr-user MODERATOR (was: Re: failure notice from zju.edu.cn)

2012-09-13 Thread Chris Hostetter

: Same here.  Changed subject to attract more attention.

For the record: the appropriate way to contact the moderators of any 
apache mailing list is by sending an email to listname-owner@host (ie: 
solr-user-owner@lucene)

This particula situation has already been dealt with.


-Hoss


Re: Cannot insert text into solr.StrField field

2012-09-13 Thread Dotan Cohen
On Fri, Sep 14, 2012 at 1:00 AM, Jack Krupansky  wrote:
> Did you check the log file?
>
> How are you adding data to Solr? Show us the actual input document or code.
>

The Solr instances on Websolr. I will put in a feature request for
that, though. I am adding the documents with Solr-PHP-Client. In fact,
preceding the variable with (int) does in fact resolve the issue I
have found. This looks like an issue with PHP being weakly typed.



-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com


Re: AW: Getting more proper results

2012-09-13 Thread Jack Krupansky

Set minGramSize="1" for EdgeNGramFilterFactory.

And use EdgeNGramFilterFactory in the "index" analyzer only, NOT in the 
"query" analyzer.


Check the "query" analyzer output in Solr admin as well.

-- Jack Krupansky

-Original Message- 
From: Ramo Karahasan

Sent: Thursday, September 13, 2012 6:00 PM
To: solr-user@lucene.apache.org
Subject: AW: Getting more proper results

If i choose "title" and search for "iphone 3" in the /admin/analysis.jsp

I get the following results for search "iphone 3"

Index Analyzer
iphone 3
ip iph ipho iphon iphone
ip iph ipho iphon iphone

if I search for "iphone 3g" I get

Index Analyzer
iphone 3g
ip iph ipho iphon iphone 3g
ip iph ipho iphon iphone 3g


So how can I configure solr so that iphone 3 is matched?

Any ideas?


Thanks,
Ramo

-Ursprüngliche Nachricht-
Von: Michael Della Bitta [mailto:michael.della.bi...@appinions.com]
Gesendet: Donnerstag, 13. September 2012 23:48
An: solr-user@lucene.apache.org
Betreff: Re: Getting more proper results

Ramo,

You can see how your content gets analyzed for your particular schema/field
on the Analysis page:

${path to your core}/admin/analysis.jsp

Michael Della Bitta


Appinions | 18 East 41st St., Suite 1806 | New York, NY 10017
www.appinions.com Where Influence Isn’t a Game


On Thu, Sep 13, 2012 at 5:39 PM, Ramo Karahasan
 wrote:

How can i check this?
Am 13.09.2012 21:48 schrieb "Otis Gospodnetic"

:



Check if 3 is being removed because it's a stop word.

Otis
--
Search Analytics - http://sematext.com/search-analytics/index.html
Performance Monitoring - http://sematext.com/spm/index.html


On Thu, Sep 13, 2012 at 11:22 AM, Ramo Karahasan
 wrote:
> Hi,
>
> i can't figure it out why I'm getting the "wrong" resulst when
> searching
for
> "iphone 3"  even if the 3 is not in the titel of the books that are
> suggested.
>
> Can I specifiy the search somehow?
>
> The AND or OR operator didn't show any differences in the resultset.
>
>
> Thanks,
> Ramo
>
> -Ursprüngliche Nachricht-
> Von: Ahmet Arslan [mailto:iori...@yahoo.com]
> Gesendet: Mittwoch, 12. September 2012 00:34
> An: solr-user@lucene.apache.org
> Betreff: Re: Getting more proper results
>
>> I'm using it that way, because I want to have an autocompletion list.
>> Now I'm wondering if I can influence some of the results I'm getting.
>> I have a lot of categories in my database. If I for example search
>> for "iphone 3" I would expect to get all iphone 3 from the
>> category electronic. If I'm searching for "iphone 3" I get the
>> following results "iPhone - the book" , "Apple iphone 4", "My iphone &

I" , etc.

>
> You can try to set your default operator to and. &q.op=AND
>
> If you are not firing a phrase query (with quotes), you can do that

too.

> &q="iphone 3"
>





Re: Cannot insert text into solr.StrField field

2012-09-13 Thread Jack Krupansky

Did you check the log file?

How are you adding data to Solr? Show us the actual input document or code.

-- Jack Krupansky

-Original Message- 
From: Dotan Cohen 
Sent: Thursday, September 13, 2012 5:31 PM 
To: solr-user@lucene.apache.org 
Subject: Cannot insert text into solr.StrField field 


Consider the following field:


   


   


Strings of the following format cannot be entered into this field:
Wed, 12 Sep 2012 11:52:20 +

I get the following error:
'400' Status: Bad Request

Numeric strings are entered without problems, such as this:
1347450740

Why might this be?

--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com


AW: Getting more proper results

2012-09-13 Thread Ramo Karahasan
If i choose "title" and search for "iphone 3" in the /admin/analysis.jsp

I get the following results for search "iphone 3"

Index Analyzer
iphone  3
ip  iph iphoiphon   iphone
ip  iph iphoiphon   iphone

if I search for "iphone 3g" I get 

Index Analyzer
iphone  3g
ip  iph iphoiphon   iphone  3g
ip  iph iphoiphon   iphone  3g


So how can I configure solr so that iphone 3 is matched?

Any ideas?


Thanks,
Ramo

-Ursprüngliche Nachricht-
Von: Michael Della Bitta [mailto:michael.della.bi...@appinions.com] 
Gesendet: Donnerstag, 13. September 2012 23:48
An: solr-user@lucene.apache.org
Betreff: Re: Getting more proper results

Ramo,

You can see how your content gets analyzed for your particular schema/field
on the Analysis page:

${path to your core}/admin/analysis.jsp

Michael Della Bitta


Appinions | 18 East 41st St., Suite 1806 | New York, NY 10017
www.appinions.com Where Influence Isn’t a Game


On Thu, Sep 13, 2012 at 5:39 PM, Ramo Karahasan
 wrote:
> How can i check this?
> Am 13.09.2012 21:48 schrieb "Otis Gospodnetic"
:
>
>> Check if 3 is being removed because it's a stop word.
>>
>> Otis
>> --
>> Search Analytics - http://sematext.com/search-analytics/index.html
>> Performance Monitoring - http://sematext.com/spm/index.html
>>
>>
>> On Thu, Sep 13, 2012 at 11:22 AM, Ramo Karahasan 
>>  wrote:
>> > Hi,
>> >
>> > i can't figure it out why I'm getting the "wrong" resulst when 
>> > searching
>> for
>> > "iphone 3"  even if the 3 is not in the titel of the books that are 
>> > suggested.
>> >
>> > Can I specifiy the search somehow?
>> >
>> > The AND or OR operator didn't show any differences in the resultset.
>> >
>> >
>> > Thanks,
>> > Ramo
>> >
>> > -Ursprüngliche Nachricht-
>> > Von: Ahmet Arslan [mailto:iori...@yahoo.com]
>> > Gesendet: Mittwoch, 12. September 2012 00:34
>> > An: solr-user@lucene.apache.org
>> > Betreff: Re: Getting more proper results
>> >
>> >> I'm using it that way, because I want to have an autocompletion list.
>> >> Now I'm wondering if I can influence some of the results I'm getting.
>> >> I have a lot of categories in my database. If I for example search 
>> >> for "iphone 3" I would expect to get all iphone 3 from the 
>> >> category electronic. If I'm searching for "iphone 3" I get the 
>> >> following results "iPhone - the book" , "Apple iphone 4", "My iphone &
I" , etc.
>> >
>> > You can try to set your default operator to and. &q.op=AND
>> >
>> > If you are not firing a phrase query (with quotes), you can do that
too.
>> > &q="iphone 3"
>> >
>>



Re: Getting more proper results

2012-09-13 Thread Michael Della Bitta
Ramo,

You can see how your content gets analyzed for your particular
schema/field on the Analysis page:

${path to your core}/admin/analysis.jsp

Michael Della Bitta


Appinions | 18 East 41st St., Suite 1806 | New York, NY 10017
www.appinions.com
Where Influence Isn’t a Game


On Thu, Sep 13, 2012 at 5:39 PM, Ramo Karahasan
 wrote:
> How can i check this?
> Am 13.09.2012 21:48 schrieb "Otis Gospodnetic" :
>
>> Check if 3 is being removed because it's a stop word.
>>
>> Otis
>> --
>> Search Analytics - http://sematext.com/search-analytics/index.html
>> Performance Monitoring - http://sematext.com/spm/index.html
>>
>>
>> On Thu, Sep 13, 2012 at 11:22 AM, Ramo Karahasan
>>  wrote:
>> > Hi,
>> >
>> > i can't figure it out why I'm getting the "wrong" resulst when searching
>> for
>> > "iphone 3"  even if the 3 is not in the titel of the books that are
>> > suggested.
>> >
>> > Can I specifiy the search somehow?
>> >
>> > The AND or OR operator didn't show any differences in the resultset.
>> >
>> >
>> > Thanks,
>> > Ramo
>> >
>> > -Ursprüngliche Nachricht-
>> > Von: Ahmet Arslan [mailto:iori...@yahoo.com]
>> > Gesendet: Mittwoch, 12. September 2012 00:34
>> > An: solr-user@lucene.apache.org
>> > Betreff: Re: Getting more proper results
>> >
>> >> I'm using it that way, because I want to have an autocompletion list.
>> >> Now I'm wondering if I can influence some of the results I'm getting.
>> >> I have a lot of categories in my database. If I for example search for
>> >> "iphone 3" I would expect to get all iphone 3 from the category
>> >> electronic. If I'm searching for "iphone 3" I get the following
>> >> results "iPhone - the book" , "Apple iphone 4", "My iphone & I" , etc.
>> >
>> > You can try to set your default operator to and. &q.op=AND
>> >
>> > If you are not firing a phrase query (with quotes), you can do that too.
>> > &q="iphone 3"
>> >
>>


Re: Getting more proper results

2012-09-13 Thread Ramo Karahasan
How can i check this?
Am 13.09.2012 21:48 schrieb "Otis Gospodnetic" :

> Check if 3 is being removed because it's a stop word.
>
> Otis
> --
> Search Analytics - http://sematext.com/search-analytics/index.html
> Performance Monitoring - http://sematext.com/spm/index.html
>
>
> On Thu, Sep 13, 2012 at 11:22 AM, Ramo Karahasan
>  wrote:
> > Hi,
> >
> > i can't figure it out why I'm getting the "wrong" resulst when searching
> for
> > "iphone 3"  even if the 3 is not in the titel of the books that are
> > suggested.
> >
> > Can I specifiy the search somehow?
> >
> > The AND or OR operator didn't show any differences in the resultset.
> >
> >
> > Thanks,
> > Ramo
> >
> > -Ursprüngliche Nachricht-
> > Von: Ahmet Arslan [mailto:iori...@yahoo.com]
> > Gesendet: Mittwoch, 12. September 2012 00:34
> > An: solr-user@lucene.apache.org
> > Betreff: Re: Getting more proper results
> >
> >> I'm using it that way, because I want to have an autocompletion list.
> >> Now I'm wondering if I can influence some of the results I'm getting.
> >> I have a lot of categories in my database. If I for example search for
> >> "iphone 3" I would expect to get all iphone 3 from the category
> >> electronic. If I'm searching for "iphone 3" I get the following
> >> results "iPhone - the book" , "Apple iphone 4", "My iphone & I" , etc.
> >
> > You can try to set your default operator to and. &q.op=AND
> >
> > If you are not firing a phrase query (with quotes), you can do that too.
> > &q="iphone 3"
> >
>


RE: failure notice from zju.edu.cn

2012-09-13 Thread Chris Hostetter

: I get the same thing, after nearly every email I send directly to the 
: lucene/solr lists (as opposed to auto-sent JIRA posts).

FWIW: I've never seen this, so i suspect it has something to do with the 
mail properties -- probably a SPAM filter that lies to you about why it's 
rejecting your mail.

Since we've not received multiple reports about this particular 
domain/address, i'll reach out to the subscriber and see if we can resolve 
hte issue one way or another.

: I don't think it delays my messages though.

Correct -- this domain is not afiliated with apache in any way (that i 
know of) and would be well downstream of hte mailing list software.  it 
bouncing a message would have nothing to do with how long it takes any 
other subscriber to recieve the message.



-Hoss


Re: MultiSearchHandler - Boosting results of a Query

2012-09-13 Thread Mikhail Khludnev
1. please explain how exactly "boost the value of a field in the 2nd based
on the results of the 1st.". Please provide sample queries, docs and
results.
2. introducing such chaining concern aka "* ResponseAware*" seems
absolutely doubtful for me.
3. are you sure you are aware of tricks like
http://wiki.apache.org/solr/SolrRelevancyFAQ#How_do_I_give_a_negative_.28or_very_low.29_boost_to_documents_that_match_a_query.3F
 and http://wiki.apache.org/solr/DisMaxQParserPlugin#bq_.28Boost_Query.29
 and http://wiki.apache.org/solr/QueryElevationComponent

On Thu, Sep 13, 2012 at 11:09 PM, Karthick Duraisamy Soundararaj <
karthick.soundara...@gmail.com> wrote:

> Clarification:
> " Once the parser is response aware, its easy for the components to grab
> the response and use them. "  In the context of function queries, by
> components, I mean various Functions that has been extended from
> ValueSource.
>
> On Thu, Sep 13, 2012 at 3:02 PM, Karthick Duraisamy Soundararaj <
> karthick.soundara...@gmail.com> wrote:
>
>> Hello all,
>> I am making multiple queries in a single url and trying
>> to boost the value of a field in the 2nd based on the results of the
>> 1st. To achieve this, my function query should be able to have access to
>> the response of the first query. However, QParser and QParserPlugin only
>> accepts req parameter and does not have any idea about the response.
>>
>> In a nutshell, all I am trying to do is that, during a serial execution
>> of  chain of queries represented by a single url(
>> https://issues.apache.org/jira/browse/SOLR-1093), I am trying to
>> influence the results of  the second query with the results of the first
>> query. To make the function queries ResponseAware, there are two options:
>>
>> *Option 1: Make all the QueryParsers ResponseAware*
>> For this the following changes seem to be inevitable
>> 1. Change/overload the createParser definition of QParserPlugin
>> to include SolrQueryResponse
>>   createParser(string qstr, SolrParams
>> localParams, SolrParams params, SolrQueryResponse rsp)
>> -> createParser(string qstr, SolrParams localParams, SolrParams params,
>> SolrQueryRequest req, SolrQueryResponse rsp)
>> 2. Make similar changes to the getParser function in QPareser
>>
>>
>> *Option 2: Make FunctionQueryParser alone ResponseAware*
>> For this, following changes need to be made
>>1. Overload the FunctionQueryParserPlugin's create method with the
>> following signature
>>createParser(string qstr, SolrParams localParams,
>> SolrParams params, SolrQueryRequest req, SolrQueryResponse rsp)
>>2. Overload the getParser methong in QParser to permit the extra
>> SolrResponse parameter and invoke this call wherever necessary.
>>
>>
>> Once the parser is response aware, its easy for the components to grab
>> the response and use them.
>>
>> This change to interface would mandate changes across the various
>> components of SOLR that use all the different kind of parsers but I think
>> this would be a useful feature as it has been requested by different people
>> at various times. I would appreciate any kind of
>> suggestions/feedback. Also, I would be more than happy to discuss if there
>> are anyother way of doing the same.
>>
>>
>
>
>
>
>


-- 
Sincerely yours
Mikhail Khludnev
Tech Lead
Grid Dynamics


 


Re: Term searches with colon(:)

2012-09-13 Thread Jack Krupansky

Please provide the following information:

1. Which Solr release are you using?
2. The field type(s) that you are using. Give the full field type (not all 
of them, just what you are using.)
3. Add &debugQuery=true to your colon request to see what query gets 
generated - the "parsedquery".
4. A small amount of indexed text that has the colons you think should 
match.


If you could reproduce your problem using the standard Solr example with the 
minimal changes, that would be most helpful. For example, a curl command to 
add a text document that has the colon in a field and where the query fails.


As a general rule, you shouldn't expect to see special characters or 
punctuation in "text" fields. In string fields, yes.


That said, the StandardTokenizer does in fact keep some special characters, 
some of the time. Colon is one that is preserved some of the time.


-- Jack Krupansky

-Original Message- 
From: Nemani, Raj

Sent: Friday, September 07, 2012 7:04 PM
To: solr-user@lucene.apache.org
Subject: Term searches with colon(:)

All,

I was wondering if anybody has run into this issue before. Solr is not
returing any search results for word that contain  colon ( : ) in it
when we perform a term search containing colon.  We do escape this
correctly, I believe as shown in the sample (taken from tomcat logs)



Sep 06, 2012 11:30:01 PM org.apache.solr.core.SolrCore execute

INFO: [] webapp=/X path=/select
params={q=+(*\:*)+&rows=100&version=2.2} hits=0 status=0 QTime=0



On the other hand if we prefix the term with a field name, we get
correct results as shown below



Sep 06, 2012 11:30:29 PM org.apache.solr.core.SolrCore execute

INFO: [] webapp=/X path=/select
params={q=(+description:*\:*)&rows=100&version=2.2} hits=1 status=0
QTime=0



Did anybody encounter this behavior before?



Any help is appreciated and Thank you in advance



Raj









Re: Multiple structured datasource(rss,db,xml) in single schema.xml

2012-09-13 Thread nishi
Thanks Thomas. Appreciate your comments.
These are my configurations :
1)  solrconfig.xml

   
  

innovation-data-config.xml  


   
  

db-data-config.xml  

  

2) db-data-config.xml




   






3) innovation-data-config.xml



 http://www.example.com/something.xml";
processor="XPathEntityProcessor"
forEach="/Innovation/name"
transformer="DateFormatTransformer">   


  
   






   
 



4) schema.xml


   

   


   
 







I_AssetID 
 I_Title
  


Now, its complaining when I run the "db_dataimport", that I_AssetID,etc is
required field 
and when I run the  "fw_dataimport", its complaining for country_id is
required field and missing...

Requirement:
So when I run db_dataimport , I want it to take care of only the fields
related to db from schema.xml and similar for fw_dataimport.

-> Also how to make an uniquekey common for these two source which doesn't
have any common/related field at all.

Could you please let me know what are the changes needed to acheive this.
Thanks again,
Nish



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Multiple-structured-datasource-rss-db-xml-in-single-schema-xml-tp4007497p4007561.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Multiple structured datasource(rss,db,xml) in single schema.xml

2012-09-13 Thread Tomás Fernández Löbbe
Yes, you can have multiple handlers configured differently (for example,
for different datasources), and call them as you want.

As for the schema, you can also have different fields for the different
document types, just make sure you have the uinique key and that you have a
good way for searching all of them (as suggested on my last email). If you
don't specifically say that a field is required then it is not.

Tomás

On Thu, Sep 13, 2012 at 4:48 PM, nishi  wrote:

> Can we have multi requestHandlers (for DIH) like one for db-source, another
> for rss article? And then can we have different field set in schema.xml  to
> segregate the fields for rss and db seperately?
> So that when I run the dataimporthandler for db-source, it should index db
> records in the existing same data-store or index pool (core) and it should
> not complain about the rss related field missing.
>
> Let me know any thoughts.
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Multiple-structured-datasource-rss-db-xml-in-single-schema-xml-tp4007497p4007548.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>


Re: Getting more proper results

2012-09-13 Thread Otis Gospodnetic
Check if 3 is being removed because it's a stop word.

Otis
-- 
Search Analytics - http://sematext.com/search-analytics/index.html
Performance Monitoring - http://sematext.com/spm/index.html


On Thu, Sep 13, 2012 at 11:22 AM, Ramo Karahasan
 wrote:
> Hi,
>
> i can't figure it out why I'm getting the "wrong" resulst when searching for
> "iphone 3"  even if the 3 is not in the titel of the books that are
> suggested.
>
> Can I specifiy the search somehow?
>
> The AND or OR operator didn't show any differences in the resultset.
>
>
> Thanks,
> Ramo
>
> -Ursprüngliche Nachricht-
> Von: Ahmet Arslan [mailto:iori...@yahoo.com]
> Gesendet: Mittwoch, 12. September 2012 00:34
> An: solr-user@lucene.apache.org
> Betreff: Re: Getting more proper results
>
>> I'm using it that way, because I want to have an autocompletion list.
>> Now I'm wondering if I can influence some of the results I'm getting.
>> I have a lot of categories in my database. If I for example search for
>> "iphone 3" I would expect to get all iphone 3 from the category
>> electronic. If I'm searching for "iphone 3" I get the following
>> results "iPhone - the book" , "Apple iphone 4", "My iphone & I" , etc.
>
> You can try to set your default operator to and. &q.op=AND
>
> If you are not firing a phrase query (with quotes), you can do that too.
> &q="iphone 3"
>


Re: Multiple structured datasource(rss,db,xml) in single schema.xml

2012-09-13 Thread nishi
Can we have multi requestHandlers (for DIH) like one for db-source, another
for rss article? And then can we have different field set in schema.xml  to
segregate the fields for rss and db seperately?
So that when I run the dataimporthandler for db-source, it should index db
records in the existing same data-store or index pool (core) and it should
not complain about the rss related field missing.

Let me know any thoughts.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Multiple-structured-datasource-rss-db-xml-in-single-schema-xml-tp4007497p4007548.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Multiple structured datasource(rss,db,xml) in single schema.xml

2012-09-13 Thread Tomás Fernández Löbbe
If you need to search across all the datasources together, the best choice
is to use a single index (with a single schema). Just add all the fields
from all the datasources (share the ones that are the same to some of
them). When adding docs, just fill the fields that belong to each document
type and leave the others empty. A couple of things:

You do need a uniqueKey that must be required.
You may want to omit norms on the fields that are usually left empty to
save some disk space.

For search, you can use copyFields to a general text field and use that for
search, or even better, use dismax (or edismax) to search across the fields
of the different document types.

For indexing, if you are using DIH, you may want to use different handlers
for the different configurations, I think that's the best way.


Tomás

On Thu, Sep 13, 2012 at 2:24 PM, nishi  wrote:

> I am little new solr -
> I am running out of solution to index combination of rss articles and
> database table contents with the same schema.xml and data-config with
> multiple datasources (rss,db tables) etc.
>
> The functionality requirement is to able to search the keyword throughout
> indexed data (can be any source - rss urls, db , xml)
> Any pointer will be very helpful.
>
> Thanks,
> Nish
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Multiple-structured-datasource-rss-db-xml-in-single-schema-xml-tp4007497.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>


Multiple structured datasource(rss,db,xml) in single schema.xml

2012-09-13 Thread nishi
I am little new solr - 
I am running out of solution to index combination of rss articles and
database table contents with the same schema.xml and data-config with
multiple datasources (rss,db tables) etc.

The functionality requirement is to able to search the keyword throughout 
indexed data (can be any source - rss urls, db , xml)
Any pointer will be very helpful.

Thanks,
Nish 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Multiple-structured-datasource-rss-db-xml-in-single-schema-xml-tp4007497.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Partial search

2012-09-13 Thread Mani
Thanks for your reply!

The version I am using is 3.6. I have deleted the document and added it
again as a single field. Now I see the result as expected. I am also using
the standard stop word list. There is no stop words for both "Engergy" and
"Field".

The search field "text" is a copy field of multiple source fields like
here...




The example I have given is not that sufficient as I was also trying to get
a Subject Field gets a boost over Name Field through copyField "text" which
I think is not possible.

http://stackoverflow.com/questions/6332892/solr-index-time-field-boost

 I am using OR condition instead of AND. AND will work for 3 or less but
does not work good more than 3 terms in the search query. I could use
defType=disMax and mm=2 parameters. 




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Partial-search-tp4007097p4007536.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: MultiSearchHandler - Boosting results of a Query

2012-09-13 Thread Karthick Duraisamy Soundararaj
Clarification:
" Once the parser is response aware, its easy for the components to grab
the response and use them. "  In the context of function queries, by
components, I mean various Functions that has been extended from
ValueSource.

On Thu, Sep 13, 2012 at 3:02 PM, Karthick Duraisamy Soundararaj <
karthick.soundara...@gmail.com> wrote:

> Hello all,
> I am making multiple queries in a single url and trying to
> boost the value of a field in the 2nd based on the results of the 1st. To
> achieve this, my function query should be able to have access to the
> response of the first query. However, QParser and QParserPlugin only
> accepts req parameter and does not have any idea about the response.
>
> In a nutshell, all I am trying to do is that, during a serial execution of
>  chain of queries represented by a single url(
> https://issues.apache.org/jira/browse/SOLR-1093), I am trying to
> influence the results of  the second query with the results of the first
> query. To make the function queries ResponseAware, there are two options:
>
> *Option 1: Make all the QueryParsers ResponseAware*
> For this the following changes seem to be inevitable
> 1. Change/overload the createParser definition of QParserPlugin to
> include SolrQueryResponse
>   createParser(string qstr, SolrParams
> localParams, SolrParams params, SolrQueryResponse rsp)
> -> createParser(string qstr, SolrParams localParams, SolrParams params,
> SolrQueryRequest req, SolrQueryResponse rsp)
> 2. Make similar changes to the getParser function in QPareser
>
>
> *Option 2: Make FunctionQueryParser alone ResponseAware*
> For this, following changes need to be made
>1. Overload the FunctionQueryParserPlugin's create method with the
> following signature
>createParser(string qstr, SolrParams localParams,
> SolrParams params, SolrQueryRequest req, SolrQueryResponse rsp)
>2. Overload the getParser methong in QParser to permit the extra
> SolrResponse parameter and invoke this call wherever necessary.
>
>
> Once the parser is response aware, its easy for the components to grab the
> response and use them.
>
> This change to interface would mandate changes across the various
> components of SOLR that use all the different kind of parsers but I think
> this would be a useful feature as it has been requested by different people
> at various times. I would appreciate any kind of
> suggestions/feedback. Also, I would be more than happy to discuss if there
> are anyother way of doing the same.
>
>


MultiSearchHandler - Boosting results of a Query

2012-09-13 Thread Karthick Duraisamy Soundararaj
Hello all,
I am making multiple queries in a single url and trying to
boost the value of a field in the 2nd based on the results of the 1st. To
achieve this, my function query should be able to have access to the
response of the first query. However, QParser and QParserPlugin only
accepts req parameter and does not have any idea about the response.

In a nutshell, all I am trying to do is that, during a serial execution of
 chain of queries represented by a single url(
https://issues.apache.org/jira/browse/SOLR-1093), I am trying to influence
the results of  the second query with the results of the first query. To
make the function queries ResponseAware, there are two options:

*Option 1: Make all the QueryParsers ResponseAware*
For this the following changes seem to be inevitable
1. Change/overload the createParser definition of QParserPlugin to
include SolrQueryResponse
  createParser(string qstr, SolrParams localParams,
SolrParams params, SolrQueryResponse rsp) -> createParser(string qstr,
SolrParams localParams, SolrParams params, SolrQueryRequest
req, SolrQueryResponse rsp)
2. Make similar changes to the getParser function in QPareser


*Option 2: Make FunctionQueryParser alone ResponseAware*
For this, following changes need to be made
   1. Overload the FunctionQueryParserPlugin's create method with the
following signature
   createParser(string qstr, SolrParams localParams,
SolrParams params, SolrQueryRequest req, SolrQueryResponse rsp)
   2. Overload the getParser methong in QParser to permit the extra
SolrResponse parameter and invoke this call wherever necessary.


Once the parser is response aware, its easy for the components to grab the
response and use them.

This change to interface would mandate changes across the various
components of SOLR that use all the different kind of parsers but I think
this would be a useful feature as it has been requested by different people
at various times. I would appreciate any kind of
suggestions/feedback. Also, I would be more than happy to discuss if there
are anyother way of doing the same.


Starting multiple cores/shards on a single node

2012-09-13 Thread JesseBuesking
I'm attempting a setup that assigns one shard per core, with multiple cores
per node.

What do I need to configure to get the initial solr node to start up with
all cores/shards?  What java parameters do I need to specify to the
additional solr nodes that start after the initial (shardId=shard1,shard2
maybe?) so that they also start with all cores/shards?

My current solr.xml contains something like the following:

  
  


I'm just testing the setup out, to see
1. How easy it is to get up and running
2. How easy it is to start up new nodes with specific cores so that my
document base has room to expand

Thank you,
- Jesse



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Starting-multiple-cores-shards-on-a-single-node-tp4007526.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to post atomic updates using xml

2012-09-13 Thread Jack Krupansky

It would be nice to get this doc added to the Update wiki:

http://wiki.apache.org/solr/UpdateXmlMessages

-- Jack Krupansky

-Original Message- 
From: jimtronic

Sent: Thursday, September 13, 2012 2:41 PM
To: solr-user@lucene.apache.org
Subject: Re: How to post atomic updates using xml

Actually, the correct method appears to be this:

an atomic update in JSON:
{
 "id"   : "book1",
 "author"   : {"set":"Neal Stephenson"}
}

the same in XML:


   
 book1
 Neal Stephenson
   


Jim



--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-post-atomic-updates-using-xml-tp4007323p4007517.html
Sent from the Solr - User mailing list archive at Nabble.com. 



Re: How to post atomic updates using xml

2012-09-13 Thread jimtronic
Actually, the correct method appears to be this:

an atomic update in JSON:
 {
  "id"   : "book1", 
  "author"   : {"set":"Neal Stephenson"} 
 } 

the same in XML: 



  book1
  Neal Stephenson



Jim



--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-post-atomic-updates-using-xml-tp4007323p4007517.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: how to boosting fisrt substring in a string solr.

2012-09-13 Thread Kiran Jayakumar
http://lucene.apache.org/core/3_6_1/queryparsersyntax.html#Boosting a Term

How about this:

Yoga^2 "Yoga Teacher"


On Thu, Sep 13, 2012 at 5:32 AM, Tanguy Moal  wrote:

> Hi,
> Did you try issuing a query like : "+Yoga Teacher" (without the
> double-quotes) ?
>
> See http://lucene.apache.org/core/3_6_1/queryparsersyntax.html#Boolean
> operators for more details one lucene's query parser's syntax.
>
> Hope this helps,
> --
> Tanguy
>
> 2012/9/13 veena rani 
>
> > Hi ,
> >
> > In solr, If i m search for for string like Yoga Teacher, it should search
> > for yoga as well as yoga teacher,
> > but it should not search for just teacher like maths teacher or science
> > teacher and any other teacher.
> > How can i do this in solr.
> > Please any one can give me solution to this question.
> >
> > --
> > Regards,
> > Veena.
> > Banglore.
> >
>


Re: Solr 4.0 Beta: Admin UI does not correctly implement dismax/edismax query

2012-09-13 Thread Tom Burton-West
Thanks Erik,

Just found out that there is already a bug report for this open as
https://issues.apache.org/jira/browse/SOLR-3811.

Tom

On Thu, Sep 13, 2012 at 12:52 PM, Erik Hatcher wrote:

> That's definitely a bug.  dismax=true is not the correct parameter to
> send.  Should be defType=dismax
>
> Erik
>
> On Sep 13, 2012, at 12:22 , Tom Burton-West wrote:
>
> > Just want to check I am not doing something obviously wrong before I
> file a
> > bug ticket.
> >
> > In Solr 4.0Beta, in the admin UI in the Query panel,, there is a checkbox
> > option to check dismax or edismax
> > When you check one of those, text boxes for the dismax parameters are
> > exposed.  However, the query that gets sent to Solr is not actually a
> > dismax query.
> >
> >
> > 
> > 3
> > ocr^200
> > true
> > true
> > 0.1
> > fire-fly
> > xml
> >
> > fire-fly
> > fire-fly
> > text:fire text:fly
> >
> > If a correct dismax query was being sent to Solr the parsedquery would
> have
> > something like the following:
> > (+DisjunctionMaxQuery(((text:fire text:fly)))
> >
> > Tom Burton-West
>
>


Re: Solr 4.0 Beta: Admin UI does not correctly implement dismax/edismax query

2012-09-13 Thread Erik Hatcher
That's definitely a bug.  dismax=true is not the correct parameter to send.  
Should be defType=dismax

Erik

On Sep 13, 2012, at 12:22 , Tom Burton-West wrote:

> Just want to check I am not doing something obviously wrong before I file a
> bug ticket.
> 
> In Solr 4.0Beta, in the admin UI in the Query panel,, there is a checkbox
> option to check dismax or edismax
> When you check one of those, text boxes for the dismax parameters are
> exposed.  However, the query that gets sent to Solr is not actually a
> dismax query.
> 
> 
> 
> 3
> ocr^200
> true
> true
> 0.1
> fire-fly
> xml
> 
> fire-fly
> fire-fly
> text:fire text:fly
> 
> If a correct dismax query was being sent to Solr the parsedquery would have
> something like the following:
> (+DisjunctionMaxQuery(((text:fire text:fly)))
> 
> Tom Burton-West



Solr 4.0 Beta: Admin UI does not correctly implement dismax/edismax query

2012-09-13 Thread Tom Burton-West
Just want to check I am not doing something obviously wrong before I file a
bug ticket.

In Solr 4.0Beta, in the admin UI in the Query panel,, there is a checkbox
option to check dismax or edismax
When you check one of those, text boxes for the dismax parameters are
exposed.  However, the query that gets sent to Solr is not actually a
dismax query.



3
ocr^200
true
true
0.1
fire-fly
xml

fire-fly
fire-fly
text:fire text:fly

If a correct dismax query was being sent to Solr the parsedquery would have
something like the following:
(+DisjunctionMaxQuery(((text:fire text:fly)))

Tom Burton-West


AW: Getting more proper results

2012-09-13 Thread Ramo Karahasan
Hi,

i can't figure it out why I'm getting the "wrong" resulst when searching for
"iphone 3"  even if the 3 is not in the titel of the books that are
suggested.

Can I specifiy the search somehow?

The AND or OR operator didn't show any differences in the resultset.


Thanks,
Ramo

-Ursprüngliche Nachricht-
Von: Ahmet Arslan [mailto:iori...@yahoo.com] 
Gesendet: Mittwoch, 12. September 2012 00:34
An: solr-user@lucene.apache.org
Betreff: Re: Getting more proper results

> I'm using it that way, because I want to have an autocompletion list. 
> Now I'm wondering if I can influence some of the results I'm getting. 
> I have a lot of categories in my database. If I for example search for 
> "iphone 3" I would expect to get all iphone 3 from the category 
> electronic. If I'm searching for "iphone 3" I get the following 
> results "iPhone - the book" , "Apple iphone 4", "My iphone & I" , etc.

You can try to set your default operator to and. &q.op=AND

If you are not firing a phrase query (with quotes), you can do that too.
&q="iphone 3"



solr cross core join

2012-09-13 Thread davideFP
Hi,

I have a problem with cross core join, there isn't documentation online and
i hope in your help.
This is my scenario:

core1 / jobs:
   
   
   

core2 / users:



matching jobs.iduser = users.id

I tried only for test this query on core jobs:

fd={!join fromIndex=users from=id to=iduser}

I get this error:

java.lang.NullPointerException
at
org.apache.solr.search.JoinQuery.hashCode(JoinQParserPlugin.java:571)
at java.util.AbstractList.hashCode(Unknown Source)
at
org.apache.solr.search.QueryResultKey.(QueryResultKey.java:50)
   
...

Can you help me please?
Thanks. 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/solr-cross-core-join-tp4007478.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr 4.0-BETA facet pivot returns no result

2012-09-13 Thread andy
nobody use this function yet?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-4-0-BETA-facet-pivot-returns-no-result-tp4007133p4007476.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr - Add Single node from XPathEntityProcessor in multiple fields

2012-09-13 Thread Alexandre Rafalovitch
Sorry, I thought there would be an automatic conversion if you parsed
into a Date field and then copyField into the text field. But perhaps
the automatic conversion format would not be the way you want. Not
entirely sure on copyField limitations (I only used simple case).

Worst case, you can write a custom Transformer and convert the date
field into text field with your format or vice-versa. I have a bunch
of those in my project doing all sorts of weird things.

Regards,
   Alex.
Personal blog: http://blog.outerthoughts.com/
LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
- Time is the quality of nature that keeps events from happening all
at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
book)


On Thu, Sep 13, 2012 at 9:48 AM, meghana  wrote:
>
> Alexandre Rafalovitch wrote
>>
>> copyField?
>>
> I have tried that... i inserted article_time_DT form dataimport handler and
> made copy field for article_time, but the issue is the value i wanted in
> these 2 fields are in different format.
>
> Is there any facility in copy field to have data in different format?? like
> i mentoned in my question?


Re: Solr - Add Single node from XPathEntityProcessor in multiple fields

2012-09-13 Thread Bernd Fehling

Your own updateRequestProcessorChain called with "update.chain" from 
requestHandler of dataimport.

Regards
Bernd


Am 13.09.2012 15:48, schrieb meghana:
> 
> Alexandre Rafalovitch wrote
>>
>> copyField?
>>
>> Regards,
>>Alex.
>> Personal blog: http://blog.outerthoughts.com/
>> LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
>> - Time is the quality of nature that keeps events from happening all
>> at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
>> book)
>>
>>
>> On Thu, Sep 13, 2012 at 9:40 AM, meghana  wrote:
>>> Hi,
>>>
>>> I have one date field in my data source as of format below
>>>
>>> 'Apr 10 2012 10:30AM'
>>>
>>> Now i wanted to add this field 2 times in my solr index, one with exact
>>> value as of above and one with 'tdate' format of solr schema.
>>>
>>> I used XPathEntityProcessor for my dataimport xml , and i add this date
>>> field in my dataimport handler as mentioned below
>>>
>>>  >> transformer="DateFormatTransformer" processor="XPathEntityProcessor"
>>> forEach="/content/article/" url="${FilePath.FileLocation}"
>>> dataSource="FD">
>>>   >> xpath="/content/article/article_time" dateTimeFormat="MMM dd 
>>> hh:mmaaa"
>>> />
>>>  >> xpath="/content/article/article_time"
>>> />
>>> 
>>>
>>> but by doing this way , only last mentioned filed (in this case
>>> 'article_time') get inserted in solr index , but no data inserted for
>>> article_time_DT field.
>>>
>>> Can any body please suggest me , how can i achieve my requirement.
>>>
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://lucene.472066.n3.nabble.com/Solr-Add-Single-node-from-XPathEntityProcessor-in-multiple-fields-tp4007456.html
>>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
> 
> Alexandre Rafalovitch wrote
>>
>> copyField?
>>
>> Regards,
>>Alex.
>> Personal blog: http://blog.outerthoughts.com/
>> LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
>> - Time is the quality of nature that keeps events from happening all
>> at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
>> book)
>>
>>
>> On Thu, Sep 13, 2012 at 9:40 AM, meghana  wrote:
>>> Hi,
>>>
>>> I have one date field in my data source as of format below
>>>
>>> 'Apr 10 2012 10:30AM'
>>>
>>> Now i wanted to add this field 2 times in my solr index, one with exact
>>> value as of above and one with 'tdate' format of solr schema.
>>>
>>> I used XPathEntityProcessor for my dataimport xml , and i add this date
>>> field in my dataimport handler as mentioned below
>>>
>>>  >> transformer="DateFormatTransformer" processor="XPathEntityProcessor"
>>> forEach="/content/article/" url="${FilePath.FileLocation}"
>>> dataSource="FD">
>>>   >> xpath="/content/article/article_time" dateTimeFormat="MMM dd 
>>> hh:mmaaa"
>>> />
>>>  >> xpath="/content/article/article_time"
>>> />
>>> 
>>>
>>> but by doing this way , only last mentioned filed (in this case
>>> 'article_time') get inserted in solr index , but no data inserted for
>>> article_time_DT field.
>>>
>>> Can any body please suggest me , how can i achieve my requirement.
>>>
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://lucene.472066.n3.nabble.com/Solr-Add-Single-node-from-XPathEntityProcessor-in-multiple-fields-tp4007456.html
>>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
> 
> I have tried that... i inserted article_time_DT form dataimport handler and
> made copy field for article_time, but the issue is the value i wanted in
> these 2 fields are in different format.
> 
> Is there any facility in copy field to have data in different format?? like
> i mentoned in my question?
> 
> 
> 
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Solr-Add-Single-node-from-XPathEntityProcessor-in-multiple-fields-tp4007456p4007465.html
> Sent from the Solr - User mailing list archive at Nabble.com.
> 

-- 
*
Bernd FehlingUniversitätsbibliothek Bielefeld
Dipl.-Inform. (FH)LibTec - Bibliothekstechnologie
Universitätsstr. 25 und Wissensmanagement
33615 Bielefeld
Tel. +49 521 106-4060   bernd.fehling(at)uni-bielefeld.de

BASE - Bielefeld Academic Search Engine - www.base-search.net
*


Re: Is it possible to do an "if" statement in a Solr query?

2012-09-13 Thread Gustav

Walter Underwood wrote
> 
> You may be able to do this with grouping. Group on the medicine "family",
> and only show the Original if there are multiple items in the family.
> 
> wunder
> 
> On Sep 12, 2012, at 2:09 PM, Gustav wrote:
> 
>> Hello everyone, I'm working on an e-commerce website and using Solr as my
>> Search Engine, im really enjoying its funcionality and the search
>> options/performance. 
>> But i am stucky in a kinda tricky cenario... That what happens:
>> 
>> I Have  a medicine web-store, where i indexed all necessary products in
>> my
>> Index Solr. 
>> But when i search for some medicine, following my business rules, i have
>> to
>> verify if the result of my search contains any Original medicine, if
>> there
>> is any, then i wouldn't show the generics of this respective medicine, on
>> the other hand, if there wasnt any original product in the result i would
>> have to return its generics.
>> Im currently returning the original and generics, is there a way to do
>> this
>> kind of "checking" in solr?
>> 
>> Thanks! :)
>>
> 

Hum.. i havent thought about this, its a really good idea! i've never used
grouping on Solr before, will do some searching and try it out.  Thanks
Walter!



Jack Krupansky-2 wrote
> 
> You could implement a custom "search component" with that logic, if you 
> don't mind the complexity of writing Java code that runs inside the Solr 
> environment. Otherwise, just implement that logic in your app. Or, or 
> implement an "app server" which sits between Solr and your app.
> 
> http://wiki.apache.org/solr/SearchComponent
> 
> -- Jack Krupansky
> 
> 

That would be a little too advanced to me, i dont think i have enough
knowledge in java to do a custom Search component... I could do that in my
app, but just wanted to know if its possible with Solr. App server? Will
search about it! Thank you Jack,


Amit Nithian wrote
> 
> If the fact that it's "original" vs "generic" is a field "is_original"
> 0/1 can you sort by is_original? Similarly, could you put a huge boost
> on is_original in the dismax so that document matches on is_original
> score higher than those that aren't original? Or is your goal to not
> show generics *at all*?
> 
> 
> On Wed, Sep 12, 2012 at 2:47 PM, Walter Underwood  wrote:
>> You may be able to do this with grouping. Group on the medicine "family",
>> and only show the Original if there are multiple items in the family.
>>
>> wunder
>>
>> On Sep 12, 2012, at 2:09 PM, Gustav wrote:
>>
>>> Hello everyone, I'm working on an e-commerce website and using Solr as
>>> my
>>> Search Engine, im really enjoying its funcionality and the search
>>> options/performance.
>>> But i am stucky in a kinda tricky cenario... That what happens:
>>>
>>> I Have  a medicine web-store, where i indexed all necessary products in
>>> my
>>> Index Solr.
>>> But when i search for some medicine, following my business rules, i have
>>> to
>>> verify if the result of my search contains any Original medicine, if
>>> there
>>> is any, then i wouldn't show the generics of this respective medicine,
>>> on
>>> the other hand, if there wasnt any original product in the result i
>>> would
>>> have to return its generics.
>>> Im currently returning the original and generics, is there a way to do
>>> this
>>> kind of "checking" in solr?
>>>
>>> Thanks! :)
> 
>>
> 

I have tought doing this Amit, but in this specific case,i would not be able
to show generics at all. a But i appreciate the help! 




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Is-it-possible-to-do-an-if-statement-in-a-Solr-query-tp4007311p4007468.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr - Add Single node from XPathEntityProcessor in multiple fields

2012-09-13 Thread meghana

Alexandre Rafalovitch wrote
> 
> copyField?
> 
> Regards,
>Alex.
> Personal blog: http://blog.outerthoughts.com/
> LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
> - Time is the quality of nature that keeps events from happening all
> at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
> book)
> 
> 
> On Thu, Sep 13, 2012 at 9:40 AM, meghana  wrote:
>> Hi,
>>
>> I have one date field in my data source as of format below
>>
>> 'Apr 10 2012 10:30AM'
>>
>> Now i wanted to add this field 2 times in my solr index, one with exact
>> value as of above and one with 'tdate' format of solr schema.
>>
>> I used XPathEntityProcessor for my dataimport xml , and i add this date
>> field in my dataimport handler as mentioned below
>>
>>  > transformer="DateFormatTransformer" processor="XPathEntityProcessor"
>> forEach="/content/article/" url="${FilePath.FileLocation}"
>> dataSource="FD">
>>   > xpath="/content/article/article_time" dateTimeFormat="MMM dd 
>> hh:mmaaa"
>> />
>>  > xpath="/content/article/article_time"
>> />
>> 
>>
>> but by doing this way , only last mentioned filed (in this case
>> 'article_time') get inserted in solr index , but no data inserted for
>> article_time_DT field.
>>
>> Can any body please suggest me , how can i achieve my requirement.
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://lucene.472066.n3.nabble.com/Solr-Add-Single-node-from-XPathEntityProcessor-in-multiple-fields-tp4007456.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
> 

Alexandre Rafalovitch wrote
> 
> copyField?
> 
> Regards,
>Alex.
> Personal blog: http://blog.outerthoughts.com/
> LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
> - Time is the quality of nature that keeps events from happening all
> at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
> book)
> 
> 
> On Thu, Sep 13, 2012 at 9:40 AM, meghana  wrote:
>> Hi,
>>
>> I have one date field in my data source as of format below
>>
>> 'Apr 10 2012 10:30AM'
>>
>> Now i wanted to add this field 2 times in my solr index, one with exact
>> value as of above and one with 'tdate' format of solr schema.
>>
>> I used XPathEntityProcessor for my dataimport xml , and i add this date
>> field in my dataimport handler as mentioned below
>>
>>  > transformer="DateFormatTransformer" processor="XPathEntityProcessor"
>> forEach="/content/article/" url="${FilePath.FileLocation}"
>> dataSource="FD">
>>   > xpath="/content/article/article_time" dateTimeFormat="MMM dd 
>> hh:mmaaa"
>> />
>>  > xpath="/content/article/article_time"
>> />
>> 
>>
>> but by doing this way , only last mentioned filed (in this case
>> 'article_time') get inserted in solr index , but no data inserted for
>> article_time_DT field.
>>
>> Can any body please suggest me , how can i achieve my requirement.
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://lucene.472066.n3.nabble.com/Solr-Add-Single-node-from-XPathEntityProcessor-in-multiple-fields-tp4007456.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
> 

I have tried that... i inserted article_time_DT form dataimport handler and
made copy field for article_time, but the issue is the value i wanted in
these 2 fields are in different format.

Is there any facility in copy field to have data in different format?? like
i mentoned in my question?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-Add-Single-node-from-XPathEntityProcessor-in-multiple-fields-tp4007456p4007465.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Partial date searches

2012-09-13 Thread Jack Krupansky

Wildcard patterns work on dates if they are "string" fields.

If your dates are "trie" dates (the default "date" field type now), you 
would need to do a copyField to a string field to do the wildcard match.


Examples:

   -05-12*
   2010-??-12*

-- Jack Krupansky

-Original Message- 
From: Alex Cougarman

Sent: Thursday, September 13, 2012 9:03 AM
To: solr-user@lucene.apache.org
Subject: Partial date searches

Hi. We're using Solr 4.0Beta and wondered how we can perform partial date 
searches. For example, we have this date stored in the index:


  2010-05-12T00:00:00Z

The user may want to search on all documents from 05-12 without providing 
the year. Or the user may want to search on 2010-xx-12 where the day isn't 
known but the month and year are known. Is this possible? Is there a sample 
search we can run in the admin interface against our index? Thanks.


Warm regards,
Alex Cougarman

Bahá'í World Centre
Haifa, Israel
Office: +972-4-835-8683
Cell: +972-54-241-4742
acoug...@bwc.org 



Re: Solr - Add Single node from XPathEntityProcessor in multiple fields

2012-09-13 Thread Alexandre Rafalovitch
copyField?

Regards,
   Alex.
Personal blog: http://blog.outerthoughts.com/
LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
- Time is the quality of nature that keeps events from happening all
at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
book)


On Thu, Sep 13, 2012 at 9:40 AM, meghana  wrote:
> Hi,
>
> I have one date field in my data source as of format below
>
> 'Apr 10 2012 10:30AM'
>
> Now i wanted to add this field 2 times in my solr index, one with exact
> value as of above and one with 'tdate' format of solr schema.
>
> I used XPathEntityProcessor for my dataimport xml , and i add this date
> field in my dataimport handler as mentioned below
>
>   transformer="DateFormatTransformer" processor="XPathEntityProcessor"
> forEach="/content/article/" url="${FilePath.FileLocation}" dataSource="FD">
>xpath="/content/article/article_time" dateTimeFormat="MMM dd  hh:mmaaa"
> />
>   />
> 
>
> but by doing this way , only last mentioned filed (in this case
> 'article_time') get inserted in solr index , but no data inserted for
> article_time_DT field.
>
> Can any body please suggest me , how can i achieve my requirement.
>
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Solr-Add-Single-node-from-XPathEntityProcessor-in-multiple-fields-tp4007456.html
> Sent from the Solr - User mailing list archive at Nabble.com.


Solr - Add Single node from XPathEntityProcessor in multiple fields

2012-09-13 Thread meghana
Hi,

I have one date field in my data source as of format below

'Apr 10 2012 10:30AM'

Now i wanted to add this field 2 times in my solr index, one with exact
value as of above and one with 'tdate' format of solr schema. 

I used XPathEntityProcessor for my dataimport xml , and i add this date
field in my dataimport handler as mentioned below

 
  
 


but by doing this way , only last mentioned filed (in this case
'article_time') get inserted in solr index , but no data inserted for
article_time_DT field.

Can any body please suggest me , how can i achieve my requirement. 





--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-Add-Single-node-from-XPathEntityProcessor-in-multiple-fields-tp4007456.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Partial date searches

2012-09-13 Thread Alexandre Rafalovitch
Well, you could always index the year/month/day separately. The query
might be a bit slower and more cumbersome, but it is doable. And for
indexing, you can probably use index-time transformers/components to
split the date into the parts behind the scenes.

The usual other option is to use Date Math, but I don't think it fits
your requirements.
http://lucene.apache.org/solr/api-4_0_0-BETA/org/apache/solr/util/DateMathParser.html

Regards,
   Alex.
Personal blog: http://blog.outerthoughts.com/
LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
- Time is the quality of nature that keeps events from happening all
at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
book)


On Thu, Sep 13, 2012 at 9:03 AM, Alex Cougarman  wrote:
> Hi. We're using Solr 4.0Beta and wondered how we can perform partial date 
> searches. For example, we have this date stored in the index:
>
>2010-05-12T00:00:00Z
>
> The user may want to search on all documents from 05-12 without providing the 
> year. Or the user may want to search on 2010-xx-12 where the day isn't known 
> but the month and year are known. Is this possible? Is there a sample search 
> we can run in the admin interface against our index? Thanks.
>
> Warm regards,
> Alex Cougarman
>
> Bahá'í World Centre
> Haifa, Israel
> Office: +972-4-835-8683
> Cell: +972-54-241-4742
> acoug...@bwc.org
>


Combine Solr with ABAP/SAP

2012-09-13 Thread Alexander Troost
Hello Everybody,

i am currently writing my Bachelor-Thesis about Enterprise Search.

And right here is my question to you:
Does anyone have experiences in combining Solr with an ABAP/SAP-System?
I would love to get some Information how you did it!
Please contact me!

Alexander


Partial date searches

2012-09-13 Thread Alex Cougarman
Hi. We're using Solr 4.0Beta and wondered how we can perform partial date 
searches. For example, we have this date stored in the index:

   2010-05-12T00:00:00Z

The user may want to search on all documents from 05-12 without providing the 
year. Or the user may want to search on 2010-xx-12 where the day isn't known 
but the month and year are known. Is this possible? Is there a sample search we 
can run in the admin interface against our index? Thanks.

Warm regards,
Alex Cougarman

Bahá'í World Centre
Haifa, Israel
Office: +972-4-835-8683 
Cell: +972-54-241-4742
acoug...@bwc.org  



Re: how to boosting fisrt substring in a string solr.

2012-09-13 Thread Tanguy Moal
Hi,
Did you try issuing a query like : "+Yoga Teacher" (without the
double-quotes) ?

See http://lucene.apache.org/core/3_6_1/queryparsersyntax.html#Boolean
operators for more details one lucene's query parser's syntax.

Hope this helps,
--
Tanguy

2012/9/13 veena rani 

> Hi ,
>
> In solr, If i m search for for string like Yoga Teacher, it should search
> for yoga as well as yoga teacher,
> but it should not search for just teacher like maths teacher or science
> teacher and any other teacher.
> How can i do this in solr.
> Please any one can give me solution to this question.
>
> --
> Regards,
> Veena.
> Banglore.
>


how to boosting fisrt substring in a string solr.

2012-09-13 Thread veena rani
Hi ,

In solr, If i m search for for string like Yoga Teacher, it should search
for yoga as well as yoga teacher,
but it should not search for just teacher like maths teacher or science
teacher and any other teacher.
How can i do this in solr.
Please any one can give me solution to this question.

-- 
Regards,
Veena.
Banglore.


答复: SOLR 4.0 DataImport frozen or fails with WARNING: Unable to read: dataimport.properties?

2012-09-13 Thread 百岁
Hi everybody,I am a freshman here,hope to make friends with you



thank you so much travis, it is working so smoothly right now



-
Zeki ama calismiyor... Calissa yapar...
--
View this message in context: 
http://lucene.472066.n3.nabble.com/SOLR-4-0-DataImport-frozen-or-fails-with-WARNING-Unable-to-read-dataimport-properties-tp4006077p4006506.html
Sent from the Solr - User mailing list archive at Nabble.com.



This email (including any attachments) is confidential and may be legally 
privileged. If you received this email in error, please delete it immediately 
and do not copy it or use it for any purpose or disclose its contents to any 
other person. Thank you.

本电邮(包括任何附件)可能含有机密资料并受法律保护。如您不是正确的收件人,请您立即删除本邮件。请不要将本电邮进行复制并用作任何其他用途、或透露本邮件之内容。谢谢。


Re: Solr 4.0 Beta Release

2012-09-13 Thread samarth s
Thanks Jack.

On Wed, Sep 12, 2012 at 8:08 PM, Jack Krupansky wrote:

> Yes, it has been released. Read the details here (including download
> instructions/links):
> http://lucene.apache.org/solr/**solrnews.html
>
> -- Jack Krupansky
>
> -Original Message- From: samarth s
> Sent: Wednesday, September 12, 2012 9:54 AM
> To: solr-user@lucene.apache.org
> Subject: Solr 4.0 Beta Release
>
>
> Hi All,
>
> Would just like to verify if Solr 4.0 Beta has been released. Does the
> following url give the official beta release:
> http://www.apache.org/dyn/**closer.cgi/lucene/solr/4.0.0-**BETA
>
> --
> Regards,
> Samarth
>



-- 
Regards,
Samarth


Re: Certain form of autocomplete (like Google Suggest)

2012-09-13 Thread aniljayanti
Hi,

Have you got any solution for this ??? I worked out in SOLR check this..

http://stackoverflow.com/questions/12174672/suggesterauto-completion-search-in-solr-using-ngrams-one-collation-for-sugges




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Certain-form-of-autocomplete-like-Google-Suggest-tp486567p4007411.html
Sent from the Solr - User mailing list archive at Nabble.com.