I've never used ThinkingSphinx, but I boost query terms all of the time in Lucene/Solr. There should be a similar mechanism in most searching tools.
Sphinx 1.10 introduces new ranking mode: SPH_RANK_SPH04. You can set ranking mode with thinking-sphinx although it is not documented on its home page. I can't recall right now how I did it exactly, but it was very similar to setting other search params.
(e.g. "^hods | hods | hods* | *hods") this query does not prioritize results. The above query only decides what to fetch. If you have to prioritize, you have to use ranking modes .. or sort modes probably.
I'm using Thinking Sphinx for full-text search, following this video. The problem is that this doesn't work. It seems that the search method only accepts conditions that are a hash.
I've tried a couple of ways, but I am clueless as to how I can represent "published_at IS NOT NULL" as a hash...
Look at the top answer on this question Android layout with sqare buttons.
Look at the top answer on this question. Android layout with sqare buttons.
Ok, so it does not seem to be possible just by using XML, but creating a custom layout. I used the SquareLayout described there, simplified the onMeasure method and it works perfectly. Still I think a solution just based on the current layout managers should have been better, but unfortunately it seems that some use cases like mine are not supported... Thank you for your help!
– mreichelt Mar 16 at 18:52 Yep, I'm pretty sure that coding the layout in Java is the only way. But at least now you have SquareLayout defined, you can re-use it in your XML as many times as you need it. – Nick Mar 17 at 16:48.
If you want two views to be beside each other then neither one can have FILL_PARENT. Sounds like what you need is a horizontal LinearLayout containing the ImageView and the other view. Then set android:layout_weight="1" and android:layout_width="0dp" on the ImageView, that will make the ImageView fill the parent.
Then set the layout_width of the other View to "wrap_content".
No, this does not work. In your case the ImageView will wrap to the size of the image - which should be scaled upwards. Besides, I can align the views in my RelativeLayout quite well - I just need the ImageView to have the correct size (width = height = width of activity).
– mreichelt Mar 16 at 16:42.
I've created an extension of LinearLayout that does exactly what you want. I've wrapped the thing in an Android Library project for convenience. See https://github.Com/ronaldsteen/Android-SquareLayout-Library.
The view should be quadratic, i.e. The height and the width of the view must match. The view should fill the whole WIDTH.
In the end I want to have an ImageView that displays a quadratic image. Currently I did this by setting both width and height of the view to FILL_PARENT, and let the ImageView draw the image correctly (using scaleType=centerInside). But: Now I want to have an additional view that is aligned with the top line of the square view, and this is where my approach fails.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.