Only copy string up to certain character symbol?

2014-10-31 Thread hschillig
So I have a title field that is common to look like this:

Personal legal forms simplified : the ultimate guide to personal legal forms
/ Daniel Sitarz.

I made a copyField that is of type "title_only". I want to ONLY copy the
text "Personal legal forms simplified : the ultimate guide to personal legal
forms".. so everything before the "/" symbol. I have it like this in my
schema.xml:















My regex seems to be off though as the field still holds the entire value
when I reindex and restart SolR. Thanks for any help!



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Only-copy-string-up-to-certain-character-symbol-tp4166857.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Score phrases higher than the records containing the words?

2014-10-30 Thread hschillig
The other ones are still rating higher. I think it's because the other two
titles contain "what" 3 times.. the more it says what, the higher it scores.
I'm not sure what else can be done. Does anybody else have any ideas?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Score-phrases-higher-than-the-records-containing-the-words-tp4166488p4166656.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Score phrases higher than the records containing the words?

2014-10-30 Thread hschillig
Edit:
I filtered my query to author:randall so I could see the score that it's
getting from the query. This is the score of the record that contains "what
if":
"score": 0.004032644

The other two books are getting this score:
"score": 0.0069850935

So... the boost is obviously not hitting that record. I wonder why?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Score-phrases-higher-than-the-records-containing-the-words-tp4166488p4166615.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Score phrases higher than the records containing the words?

2014-10-30 Thread hschillig
How can I tell if the stop words is resolved? This is what I get when I turn
debugging on:

http://apaste.info/0Uz   

When I put:
q=title:(what if) OR title:"what if"^10
I get this:

"rawquerystring": "title:(what if) OR title:\"what if\"^10",
"querystring": "title:(what if) OR title:\"what if\"^10",
"parsedquery": "(+((title:what title:if) PhraseQuery(title:\"what
if\"^10.0)))/no_coord",
"parsedquery_toString": "+((title:what title:if) title:\"what if\"^10.0)"

The other two titles still appear on top of the one that contains the "what
if" phrase.
I tried turning edismax on and placing "title" in the pf field and the same
results appear.

Thanks for any help,
Haley



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Score-phrases-higher-than-the-records-containing-the-words-tp4166488p4166608.html
Sent from the Solr - User mailing list archive at Nabble.com.


Score phrases higher than the records containing the words?

2014-10-29 Thread hschillig
So I have a few titles like so:

1. When a dog bites fight back : what you need to know, what to do, what not
to do / [prepared by the law firm] Slater & Zurz LLP.
2. First things first [book on cd] : [the rules of being a Warner-- what
works, what doesn't and what really matters most] / Kurt & Brenda Warner,
with Jennifer Schuchmann.
3. What if? : serious scientific answers to absurd hypothetical questions /
Randall Munroe.

Now when I put this in my query field:
title:what if

It returns the first two BEFORE it returns the book that has the actual
"what if" phrase.. when that one should be listed first..
If I do title:"what if", none of them get returned.

Here is my schema.xml file:
http://apaste.info/7r5   

I want the titles that contain the phrase "what if" to be returned first.
And then index by "what", "if".. The double quotes doesn't seem to contain
the phrase. I removed the stop words because "if" was in the list and I
didn't want the indexing to ignore that.

Thank you for any help!



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Score-phrases-higher-than-the-records-containing-the-words-tp4166488.html
Sent from the Solr - User mailing list archive at Nabble.com.